aboutsummaryrefslogtreecommitdiff
path: root/ld/ChangeLog
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2021-03-02 21:22:31 +1030
committerAlan Modra <amodra@gmail.com>2021-03-02 21:47:42 +1030
commitf5b9c288a3057f0f04e74f00fdb0e79d171d54a8 (patch)
tree8286125cbea609ffb437fcd0155dbc6b913336a2 /ld/ChangeLog
parentec11fcffc00ed02eed7b18b312a1af857f5a8caa (diff)
downloadgdb-f5b9c288a3057f0f04e74f00fdb0e79d171d54a8.zip
gdb-f5b9c288a3057f0f04e74f00fdb0e79d171d54a8.tar.gz
gdb-f5b9c288a3057f0f04e74f00fdb0e79d171d54a8.tar.bz2
PowerPC64 undefined weak visibility vs GOT optimisation
Undefined weak symbols with non-default visibility are seen as local by SYMBOL_REFERENCES_LOCAL. This stops a got indirect to relative optimisation for them, so that pies and dlls don't get non-zero values when loading somewhere other than the address they are linked at (which always happens). The optimisation could be allowed for pdes, but I thought it best not to allow it there too. bfd/ * elf64-ppc.c (ppc64_elf_relocate_section): Don't optimise got indirect to pc-relative or toc-relative for undefined symbols. ld/ * testsuite/ld-powerpc/weak1.d, * testsuite/ld-powerpc/weak1.r, * testsuite/ld-powerpc/weak1.s, * testsuite/ld-powerpc/weak1so.d, * testsuite/ld-powerpc/weak1so.r: New tests. * testsuite/ld-powerpc/powerpc.exp: Run them.
Diffstat (limited to 'ld/ChangeLog')
-rw-r--r--ld/ChangeLog9
1 files changed, 9 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index e43f7fa..2bb97bd 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,12 @@
+2021-03-02 Alan Modra <amodra@gmail.com>
+
+ * testsuite/ld-powerpc/weak1.d,
+ * testsuite/ld-powerpc/weak1.r,
+ * testsuite/ld-powerpc/weak1.s,
+ * testsuite/ld-powerpc/weak1so.d,
+ * testsuite/ld-powerpc/weak1so.r: New tests.
+ * testsuite/ld-powerpc/powerpc.exp: Run them.
+
2021-03-01 Hannes Domani <ssbssa@sourceware.org>
Nick Clifton <nickc@redhat.com>