aboutsummaryrefslogtreecommitdiff
path: root/ld/ChangeLog
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2017-09-05 11:24:01 -0700
committerH.J. Lu <hjl.tools@gmail.com>2017-09-05 11:24:14 -0700
commit8b43e456886c5b3aaba1ef93195ed888b15de242 (patch)
tree971277b504081ef9ea170bcb1b26e1bf5e757d9d /ld/ChangeLog
parent5eb5f85062a3d43bf449ded1b256d761d487f0d6 (diff)
downloadgdb-8b43e456886c5b3aaba1ef93195ed888b15de242.zip
gdb-8b43e456886c5b3aaba1ef93195ed888b15de242.tar.gz
gdb-8b43e456886c5b3aaba1ef93195ed888b15de242.tar.bz2
x86-64: Improve GOTPCREL relocation conversion
When GOTPCREL relocation conversion leads to relocation overflow, we may get a mysterious linker message, like relocation truncated to fit: R_X86_64_32S against symbol `foo' This patch changes the linker message to failed to convert GOTPCREL relocation; relink with --no-relax bfd/ * 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 if a GOTPCREL relocation is converted. (elf_x86_64_relocate_section): Issue a fatal error and suggest --no-relax if GOTPCREL relocation conversion leads to relocation overflow. * elfxx-x86.h (elf_x86_link_hash_entry): Add converted_reloc. ld/ * testsuite/ld-x86-64/pr19609-4e.d: Updated. * testsuite/ld-x86-64/pr19609-6a.d: Likewise.
Diffstat (limited to 'ld/ChangeLog')
-rw-r--r--ld/ChangeLog5
1 files changed, 5 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 1fbec40..983c471 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,8 @@
+2017-09-05 H.J. Lu <hongjiu.lu@intel.com>
+
+ * testsuite/ld-x86-64/pr19609-4e.d: Updated.
+ * testsuite/ld-x86-64/pr19609-6a.d: Likewise.
+
2017-09-03 H.J. Lu <hongjiu.lu@intel.com>
PR ld/22071