aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2020-09-10 18:46:14 +0930
committerAlan Modra <amodra@gmail.com>2020-09-10 18:58:51 +0930
commit36efe0aea5f7e5088f79e4c8d0265de0c0ec2be9 (patch)
treeeb940c1c471e6d036600f63f140aa5dc3639c823 /ld
parent36dcb3a97d01cc0b9a45f0d2374e97a8ec8749e1 (diff)
downloadfsf-binutils-gdb-36efe0aea5f7e5088f79e4c8d0265de0c0ec2be9.zip
fsf-binutils-gdb-36efe0aea5f7e5088f79e4c8d0265de0c0ec2be9.tar.gz
fsf-binutils-gdb-36efe0aea5f7e5088f79e4c8d0265de0c0ec2be9.tar.bz2
Re: PR26580, Size and alignment of commons vs as-needed shared lib
Some MIPS targets, for reasons I didn't analyse, use the larger common symbol in a shared lib rather than a smaller common in an executable. That doesn't seem unreasonable, so allow that to pass for pr26580-2. bfin-elf complains about not supporting copy relocs, but it's quite silly to want a copy reloc for common symbols, so leave the fail there. mn10300-elf and score-elf both fail the test with "PHDR segment not covered by LOAD segment". Other tests fail similarly so one more doesn't hurt. The failure is a consequence of supporting dynamic objects but setting EMBEDDED in ld scripts. PR 26580 * testsuite/ld-elf/pr26580-2.sd: Accept undefined symbol.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog4
-rw-r--r--ld/testsuite/ld-elf/pr26580-2.sd2
2 files changed, 5 insertions, 1 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 621167d..46a4aca 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,5 +1,9 @@
2020-09-10 Alan Modra <amodra@gmail.com>
+ * testsuite/ld-elf/pr26580-2.sd: Accept undefined symbol.
+
+2020-09-10 Alan Modra <amodra@gmail.com>
+
* testsuite/ld-plugin/lto-18b.c (select): Remove.
* testsuite/ld-plugin/lto-18c.c (select): Remove.
* testsuite/ld-plugin/lto.exp: Build archives for lto-18 too,
diff --git a/ld/testsuite/ld-elf/pr26580-2.sd b/ld/testsuite/ld-elf/pr26580-2.sd
index 265b880..10474ca 100644
--- a/ld/testsuite/ld-elf/pr26580-2.sd
+++ b/ld/testsuite/ld-elf/pr26580-2.sd
@@ -1,4 +1,4 @@
#...
-.* 8 OBJECT GLOBAL DEFAULT .* one
+.* (8 OBJECT GLOBAL DEFAULT .*|0 OBJECT GLOBAL DEFAULT UND) one
#pass