diff options
author | Alan Modra <amodra@gmail.com> | 2023-06-15 11:45:03 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2023-06-15 11:45:03 +0930 |
commit | 0749c73cf8d5308359a75823b887c8cdf2e1b993 (patch) | |
tree | 19fd9b3c8ec032964d7660feb6654a6ed61b14ad /ld/testsuite/ld-scripts | |
parent | 6a28a3c20044db82f86aad208497e2c8f6557f93 (diff) | |
download | gdb-0749c73cf8d5308359a75823b887c8cdf2e1b993.zip gdb-0749c73cf8d5308359a75823b887c8cdf2e1b993.tar.gz gdb-0749c73cf8d5308359a75823b887c8cdf2e1b993.tar.bz2 |
Re: Add some expected failures for bfin linker tests
After commit 7ade0f1582c4 I was seeing bfin-elf +XPASS: weak symbols,
and on looking into the bfin targets a little, discovered we have two
bfin-linux targets. One, bfin-uclinux, is like bfin-elf in that
ld -m elf32bfin is the default, and the other, bfin-linux-uclibc where
ld -m elf32bfinfd is the default. So putting bfin-*-*linux* in test
xfails or elsewhere is wrong. We want bfin-*-linux* instead to just
select the fdpic bfin target.
This patch corrects wrong bfin target triples in the ld testsuite,
not just the recent change but others I'd added to xfails too.
It also fixes the bfin-linux-uclibc ld-elf/64ksec fail
Diffstat (limited to 'ld/testsuite/ld-scripts')
-rw-r--r-- | ld/testsuite/ld-scripts/empty-address-1.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-scripts/empty-address-2a.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-scripts/empty-address-2b.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-scripts/pr14962-2.d | 2 | ||||
-rw-r--r-- | ld/testsuite/ld-scripts/pr14962.d | 4 | ||||
-rw-r--r-- | ld/testsuite/ld-scripts/weak.exp | 3 |
6 files changed, 8 insertions, 7 deletions
diff --git a/ld/testsuite/ld-scripts/empty-address-1.d b/ld/testsuite/ld-scripts/empty-address-1.d index a2940b3..dbaf778 100644 --- a/ld/testsuite/ld-scripts/empty-address-1.d +++ b/ld/testsuite/ld-scripts/empty-address-1.d @@ -1,6 +1,6 @@ #ld: -T empty-address-1.t #nm: -n -#xfail: bfin-*-*linux* frv-*-*linux* +#xfail: bfin-*-linux* frv-*-*linux* #... 0+0 [AT] _start #... diff --git a/ld/testsuite/ld-scripts/empty-address-2a.d b/ld/testsuite/ld-scripts/empty-address-2a.d index ea6048d..4471a1b 100644 --- a/ld/testsuite/ld-scripts/empty-address-2a.d +++ b/ld/testsuite/ld-scripts/empty-address-2a.d @@ -1,7 +1,7 @@ #source: empty-address-2.s #ld: -Ttext 0x0000000 -Tdata 0x200 -T empty-address-2a.t #nm: -n -#xfail: bfin-*-*linux* frv-*-*linux* riscv64*-*-* tic54x-*-* +#xfail: bfin-*-linux* frv-*-*linux* riscv64*-*-* tic54x-*-* #... 0+0 T _start #... diff --git a/ld/testsuite/ld-scripts/empty-address-2b.d b/ld/testsuite/ld-scripts/empty-address-2b.d index 9549940..8dfe888 100644 --- a/ld/testsuite/ld-scripts/empty-address-2b.d +++ b/ld/testsuite/ld-scripts/empty-address-2b.d @@ -1,7 +1,7 @@ #source: empty-address-2.s #ld: -Ttext 0x0000000 -Tdata 0x200 -T empty-address-2b.t #nm: -n -#xfail: bfin-*-*linux* frv-*-*linux* riscv64*-*-* tic54x-*-* +#xfail: bfin-*-linux* frv-*-*linux* riscv64*-*-* tic54x-*-* #... 0+0 T _start #... diff --git a/ld/testsuite/ld-scripts/pr14962-2.d b/ld/testsuite/ld-scripts/pr14962-2.d index 8df00d9..8b464da 100644 --- a/ld/testsuite/ld-scripts/pr14962-2.d +++ b/ld/testsuite/ld-scripts/pr14962-2.d @@ -1,7 +1,7 @@ #ld: -T pr14962-2.t #source: pr14962a.s #nm: -n -#xfail: bfin-*-*linux* frv-*-*linux* +#xfail: bfin-*-linux* frv-*-*linux* #... 0+2000 [AT] _start diff --git a/ld/testsuite/ld-scripts/pr14962.d b/ld/testsuite/ld-scripts/pr14962.d index 779b3c9..4c8e370 100644 --- a/ld/testsuite/ld-scripts/pr14962.d +++ b/ld/testsuite/ld-scripts/pr14962.d @@ -5,8 +5,8 @@ #xfail: mmix-knuth-mmixware # The reference to x would normally generate a cross-reference error # but the linker script converts x to absolute to avoid the error. -#xfail: bfin-*-*linux* -# The bfin backend complains about attempting to put a fixup into a read-only section. +#xfail: bfin-*-linux* +# The bfinfd backend complains about fixups in read-only sections. #... 0+2000 A x diff --git a/ld/testsuite/ld-scripts/weak.exp b/ld/testsuite/ld-scripts/weak.exp index dff087d..004ea59 100644 --- a/ld/testsuite/ld-scripts/weak.exp +++ b/ld/testsuite/ld-scripts/weak.exp @@ -26,7 +26,8 @@ set testname "weak symbols" if { [is_elf_format] } { # hppa64 is incredibly broken setup_xfail hppa64-*-* - setup_xfail bfin-*-* + # elf32bfinfd target complains about fixups in read-only sections + setup_xfail bfin-*-linux* } elseif { [is_pecoff_format] } { # Weak symbols are broken for most PE targets. if { ![istarget aarch64-*-*] |