From: Alan Modra Date: Thu, 10 Sep 2020 09:16:14 +0000 (+0930) Subject: Re: PR26580, Size and alignment of commons vs as-needed shared lib X-Git-Tag: gdb-10.1-release~101 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=36efe0aea5f7e5088f79e4c8d0265de0c0ec2be9;p=thirdparty%2Fbinutils-gdb.git 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. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index 621167de0fb..46a4aca2a56 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,7 @@ +2020-09-10 Alan Modra + + * testsuite/ld-elf/pr26580-2.sd: Accept undefined symbol. + 2020-09-10 Alan Modra * testsuite/ld-plugin/lto-18b.c (select): Remove. diff --git a/ld/testsuite/ld-elf/pr26580-2.sd b/ld/testsuite/ld-elf/pr26580-2.sd index 265b880f81a..10474ca23d4 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