diff options
author | Sergey Bugaev <bugaevc@gmail.com> | 2024-03-27 19:18:28 +0300 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2024-03-27 19:39:47 +0100 |
commit | 74dff42e4ebd48ed6eb0a3b9dac0cc4ea7d50902 (patch) | |
tree | 19c3116b95b4d196922f800f7323161028cb5181 /include | |
parent | 04e11360aa26af072eb0ea3b024bc3983f1b7f8f (diff) | |
download | gnumach-74dff42e4ebd48ed6eb0a3b9dac0cc4ea7d50902.tar.gz gnumach-74dff42e4ebd48ed6eb0a3b9dac0cc4ea7d50902.tar.bz2 gnumach-74dff42e4ebd48ed6eb0a3b9dac0cc4ea7d50902.zip |
Load 64-bit ELFs on all 64-bit ports
Not only on x86_64.
Message-ID: <20240327161841.95685-5-bugaevc@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/mach/exec/elf.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/mach/exec/elf.h b/include/mach/exec/elf.h index 409947c4..9e4f8f7e 100644 --- a/include/mach/exec/elf.h +++ b/include/mach/exec/elf.h @@ -212,7 +212,7 @@ typedef struct elf64_sym { Elf64_Xword st_size; } Elf64_Sym; -#ifdef __x86_64__ +#ifdef __LP64__ #define Elf_Sym Elf64_Sym #define Elf_Shdr Elf64_Shdr #else @@ -349,7 +349,7 @@ typedef struct { #define DT_TEXTREL 22 #define DT_JMPREL 23 -#if defined(__x86_64__) && ! defined(USER32) +#if defined(__LP64__) && ! defined(USER32) typedef Elf64_Ehdr Elf_Ehdr; typedef Elf64_Phdr Elf_Phdr; #else |