diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2017-09-05 13:41:18 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2017-09-05 13:43:02 -0700 |
commit | dc089072135ec2e30337879b1f6147b77c77b341 (patch) | |
tree | 237a2de944c7be5b73d3ccf182d8ac0498d2c6a0 /bfd | |
parent | 5ca79eae06a692cca5bb795045ffb8961e2b8ae8 (diff) | |
download | gdb-dc089072135ec2e30337879b1f6147b77c77b341.zip gdb-dc089072135ec2e30337879b1f6147b77c77b341.tar.gz gdb-dc089072135ec2e30337879b1f6147b77c77b341.tar.bz2 |
x86-64: Properly set converted_reloc
Linker now generates
failed to convert GOTPCREL relocation; relink with --no-relax
for more cases.
bfd/
* elf64-x86-64.c (elf_x86_64_convert_load_reloc): Properly set
converted_reloc.
ld/
* testsuite/ld-x86-64/pr19609-5d.d: Updated.
* testsuite/ld-x86-64/pr19609-7a.d: Likewise.
* testsuite/ld-x86-64/pr19609-7c.d: Likewise.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/elf64-x86-64.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 551891d..7e98b61 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,10 @@ 2017-09-05 H.J. Lu <hongjiu.lu@intel.com> + * elf64-x86-64.c (elf_x86_64_convert_load_reloc): Properly set + converted_reloc. + +2017-09-05 H.J. Lu <hongjiu.lu@intel.com> + * elf64-x86-64.c (elf_x86_64_convert_load_reloc): Remove the sec argument. Don't check relocation overflow. Avoid relocation overflow if --no-relax is used. Set converted_reloc on symbol diff --git a/bfd/elf64-x86-64.c b/bfd/elf64-x86-64.c index ddbf133..bb47191 100644 --- a/bfd/elf64-x86-64.c +++ b/bfd/elf64-x86-64.c @@ -1597,10 +1597,10 @@ elf_x86_64_convert_load_reloc (bfd *abfd, if (no_overflow) return TRUE; +convert: if (h != NULL) ((struct elf_x86_link_hash_entry *) h)->converted_reloc = 1; -convert: if (opcode == 0xff) { /* We have "call/jmp *foo@GOTPCREL(%rip)". */ |