From 8218572d5ed33d4d581133fbf34fc6249ca29ba9 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Fri, 17 Oct 2008 22:22:17 -0700 Subject: [PATCH] ELF64: GOTOFF64 doesn't need a gsym at all GOTOFF64 is used for local variables (as a 64-bit offset from the GOT; only needed in the Medium PIC or Large PIC models.) It therefore should *not* be a elf_add_gsym_reloc() invocation. Signed-off-by: H. Peter Anvin --- output/outelf64.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/output/outelf64.c b/output/outelf64.c index 1405d2fd..fa4a6314 100644 --- a/output/outelf64.c +++ b/output/outelf64.c @@ -1012,8 +1012,7 @@ static void elf_out(int32_t segto, const void *data, error(ERR_NONFATAL, "ELF64 requires ..gotoff " "references to be qword absolute"); } else { - elf_add_gsym_reloc(s, segment, addr, 0, - R_X86_64_GOTOFF64, false); + elf_add_reloc(s, segment, addr, R_X86_64_GOTOFF64); addr = 0; } } else if (wrt == elf_got_sect + 1) { -- 2.11.4.GIT