summaryrefslogtreecommitdiffstats
path: root/sys/boot/common/reloc_elf.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/boot/common/reloc_elf.c')
-rw-r--r--sys/boot/common/reloc_elf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/boot/common/reloc_elf.c b/sys/boot/common/reloc_elf.c
index 43b7cbf..b614091 100644
--- a/sys/boot/common/reloc_elf.c
+++ b/sys/boot/common/reloc_elf.c
@@ -78,7 +78,7 @@ __elfN(reloc)(struct elf_file *ef, symaddr_fn *symaddr, const void *reldata,
}
return (0);
-#elif defined(__i386__) && __ELF_WORD_SIZE == 64
+#elif (defined(__i386__) || defined(__amd64__)) && __ELF_WORD_SIZE == 64
Elf64_Addr *where, val;
Elf_Addr addend, addr;
Elf_Size rtype, symidx;
OpenPOWER on IntegriCloud