diff options
author | Gunnar Beutner <gbeutner@serenityos.org> | 2021-06-28 17:24:08 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-06-28 22:29:28 +0200 |
commit | 158355e0d773d1121286bf7a51575b554be98806 (patch) | |
tree | d2aa14921fe926236e8d2e58dfe316a0f6e23bff /Userland/Libraries/LibC | |
parent | e35b0605013163ea2f3425ec4ed4489e64d03280 (diff) | |
download | serenity-158355e0d773d1121286bf7a51575b554be98806.zip |
Kernel+LibELF: Add support for validating and loading ELF64 executables
Diffstat (limited to 'Userland/Libraries/LibC')
-rw-r--r-- | Userland/Libraries/LibC/elf.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Userland/Libraries/LibC/elf.h b/Userland/Libraries/LibC/elf.h index 3b1808188e..0d2ac66928 100644 --- a/Userland/Libraries/LibC/elf.h +++ b/Userland/Libraries/LibC/elf.h @@ -38,6 +38,12 @@ # include <AK/Types.h> #endif +#ifdef __LP64__ +# define ElfW(type) Elf64_##type +#else +# define ElfW(type) Elf32_##type +#endif + typedef uint8_t Elf_Byte; typedef uint32_t Elf32_Addr; /* Unsigned program address */ |