aboutsummaryrefslogtreecommitdiff
path: root/ld/ChangeLog
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2021-05-07 11:24:10 +0930
committerAlan Modra <amodra@gmail.com>2021-05-07 16:25:40 +0930
commit70993db314dc42194478d2c47b67d89f285c054a (patch)
tree728ce7254d2d17cf617b788f1b2b5b2edc7b271e /ld/ChangeLog
parent44056b7ce43618094e61bf856d77c798628cac83 (diff)
downloadfsf-binutils-gdb-70993db314dc42194478d2c47b67d89f285c054a.zip
fsf-binutils-gdb-70993db314dc42194478d2c47b67d89f285c054a.tar.gz
fsf-binutils-gdb-70993db314dc42194478d2c47b67d89f285c054a.tar.bz2
multiple definition warnings from script symbols
In commit 89753bbf81 I enabled a warning for scripts redefining symbols. The idea was to not warn for symbols defined by shared libraries (the h->u.def.section->output_section != NULL test), but the test failed to take into account absolute symbols. Absolute symbols defined in shared libraries are currently indistinguishable from absolute symbols defined in relocatable objects, at least when only looking at struct bfd_link_hash_entry. So, don't warn for any absolute symbols. * ldexp.c (update_definedness): Don't return false for absolute symbols. * ldmain.c (multiple_definition): Print "warning: " in message when not a hard error.
Diffstat (limited to 'ld/ChangeLog')
-rw-r--r--ld/ChangeLog7
1 files changed, 7 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 80247c5..fa367d3 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,5 +1,12 @@
2021-05-07 Alan Modra <amodra@gmail.com>
+ * ldexp.c (update_definedness): Don't return false for absolute
+ symbols.
+ * ldmain.c (multiple_definition): Print "warning: " in message
+ when not a hard error.
+
+2021-05-07 Alan Modra <amodra@gmail.com>
+
* testsuite/ld-elf/pr27825-1.d: Correct xfail.
* testsuite/ld-elf/pr27825-2.d: Likewise.