From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2124) id 1B22B385841C; Wed, 14 Jun 2023 14:54:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1B22B385841C Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Nick Clifton To: bfd-cvs@sourceware.org Subject: [binutils-gdb] Add some expected failures for bfin linker tests X-Act-Checkin: binutils-gdb X-Git-Author: Nick Clifton X-Git-Refname: refs/heads/master X-Git-Oldrev: fb221fba1a5eb05355f248d6aa1e3ab4316899fd X-Git-Newrev: 7ade0f1582c417dc74b9449faf2b8dc86469ac9b Message-Id: <20230614145436.1B22B385841C@sourceware.org> Date: Wed, 14 Jun 2023 14:54:36 +0000 (GMT) X-BeenThere: binutils-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Binutils-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Jun 2023 14:54:36 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dbinutils-gdb.git;h=3D7ade0f1582c4= 17dc74b9449faf2b8dc86469ac9b commit 7ade0f1582c417dc74b9449faf2b8dc86469ac9b Author: Nick Clifton Date: Wed Jun 14 15:54:29 2023 +0100 Add some expected failures for bfin linker tests Diff: --- ld/testsuite/ld-elf/comm-data5.d | 2 +- ld/testsuite/ld-elf/ehdr_start-missing.d | 1 + ld/testsuite/ld-elf/ehdr_start-userdef.d | 2 +- ld/testsuite/ld-elf/ehdr_start-weak.d | 2 +- ld/testsuite/ld-elf/ehdr_start.d | 2 +- ld/testsuite/ld-elf/pr19539.d | 3 ++- ld/testsuite/ld-elf/pr22269a.d | 3 ++- ld/testsuite/ld-elf/pr22269b.d | 3 ++- ld/testsuite/ld-elf/pr23591.d | 4 ++-- ld/testsuite/ld-elf/pr23648.d | 2 +- ld/testsuite/ld-misc/defsym1.d | 2 +- ld/testsuite/ld-scripts/empty-address-1.d | 2 +- ld/testsuite/ld-scripts/empty-address-2a.d | 2 +- ld/testsuite/ld-scripts/empty-address-2b.d | 2 +- ld/testsuite/ld-scripts/pr14962-2.d | 2 +- ld/testsuite/ld-scripts/pr14962.d | 2 ++ ld/testsuite/ld-scripts/weak.exp | 1 + 17 files changed, 22 insertions(+), 15 deletions(-) diff --git a/ld/testsuite/ld-elf/comm-data5.d b/ld/testsuite/ld-elf/comm-da= ta5.d index 16fc9615641..d13535150a2 100644 --- a/ld/testsuite/ld-elf/comm-data5.d +++ b/ld/testsuite/ld-elf/comm-data5.d @@ -1,6 +1,6 @@ #source: comm-data5.s #ld:=20 #readelf: -r -#xfail: frv-*-*linux* lm32-*-linux* +#xfail: bfin-*-*linux* frv-*-*linux* lm32-*-linux* =20 There are no relocations in this file. diff --git a/ld/testsuite/ld-elf/ehdr_start-missing.d b/ld/testsuite/ld-elf= /ehdr_start-missing.d index 259b0813cee..3fb85e00f2d 100644 --- a/ld/testsuite/ld-elf/ehdr_start-missing.d +++ b/ld/testsuite/ld-elf/ehdr_start-missing.d @@ -2,3 +2,4 @@ #ld: -e _start -T ehdr_start-missing.t --no-dynamic-linker #error: .*: undefined reference to `__ehdr_start' #target: *-*-linux* *-*-gnu* *-*-nacl* arm*-*-uclinuxfdpiceabi +#xfail: bfin-*-* diff --git a/ld/testsuite/ld-elf/ehdr_start-userdef.d b/ld/testsuite/ld-elf= /ehdr_start-userdef.d index 36c6d7ed7c3..93ed0d8138d 100644 --- a/ld/testsuite/ld-elf/ehdr_start-userdef.d +++ b/ld/testsuite/ld-elf/ehdr_start-userdef.d @@ -2,7 +2,7 @@ #ld: -e _start -T ehdr_start-userdef.t #readelf: -Ws #target: *-*-linux* *-*-gnu* *-*-nacl* arm*-*-uclinuxfdpiceabi -#xfail: frv-*-* +#xfail: bfin-*-* frv-*-* =20 #... Symbol table '\.symtab' contains [0-9]+ entries: diff --git a/ld/testsuite/ld-elf/ehdr_start-weak.d b/ld/testsuite/ld-elf/eh= dr_start-weak.d index 5537b8ff25d..c4f9072e42a 100644 --- a/ld/testsuite/ld-elf/ehdr_start-weak.d +++ b/ld/testsuite/ld-elf/ehdr_start-weak.d @@ -2,7 +2,7 @@ #ld: -e _start -T ehdr_start-missing.t --no-dynamic-linker #nm: -n #target: *-*-linux* *-*-gnu* *-*-nacl* arm*-*-uclinuxfdpiceabi -#xfail: frv-*-* +#xfail: bfin-*-* frv-*-* =20 #failif #... diff --git a/ld/testsuite/ld-elf/ehdr_start.d b/ld/testsuite/ld-elf/ehdr_st= art.d index 0b7afdf20ca..0ec3b134831 100644 --- a/ld/testsuite/ld-elf/ehdr_start.d +++ b/ld/testsuite/ld-elf/ehdr_start.d @@ -2,7 +2,7 @@ #ld: -e _start --build-id #nm: -n #target: *-*-linux* *-*-gnu* *-*-nacl* arm*-*-uclinuxfdpiceabi -#xfail: frv-*-* lm32-*-* +#xfail: bfin-*-* frv-*-* lm32-*-* =20 #... [0-9a-f]*000 [Adrt] __ehdr_start diff --git a/ld/testsuite/ld-elf/pr19539.d b/ld/testsuite/ld-elf/pr19539.d index 3760c060361..99cfd9db917 100644 --- a/ld/testsuite/ld-elf/pr19539.d +++ b/ld/testsuite/ld-elf/pr19539.d @@ -4,7 +4,8 @@ #readelf : --dyn-syms --wide #warning: .*: creating DT_TEXTREL in a PIE #target: *-*-linux* *-*-gnu* *-*-solaris* arm*-*-uclinuxfdpiceabi -#xfail: ![check_pie_support] +# The BFIN target always generates a relocation. +#xfail: ![check_pie_support] || bfin-*-* =20 Symbol table '\.dynsym' contains [0-9]+ entr(y|ies): #pass diff --git a/ld/testsuite/ld-elf/pr22269a.d b/ld/testsuite/ld-elf/pr22269a.d index 1ac29aef43c..8644d0e095f 100644 --- a/ld/testsuite/ld-elf/pr22269a.d +++ b/ld/testsuite/ld-elf/pr22269a.d @@ -3,7 +3,8 @@ #ld: -pie --no-dynamic-linker #readelf: -r -x .data.rel.ro #target: *-*-linux* *-*-gnu* *-*-nacl* arm*-*-uclinuxfdpiceabi -#xfail: ![check_pie_support]=20 +# The BFIN target always generates a relocation. +#xfail: ![check_pie_support] || bfin-*-* =20 There are no relocations in this file. =20 diff --git a/ld/testsuite/ld-elf/pr22269b.d b/ld/testsuite/ld-elf/pr22269b.d index d3eed582054..1d8e7bd2d90 100644 --- a/ld/testsuite/ld-elf/pr22269b.d +++ b/ld/testsuite/ld-elf/pr22269b.d @@ -4,7 +4,8 @@ #readelf: -r -x .data.rel.ro #warning: -z dynamic-undefined-weak ignored #target: *-*-linux* *-*-gnu* *-*-nacl* arm*-*-uclinuxfdpiceabi -#xfail: ![check_pie_support]=20 +# The BFIN target always generates a relocation. +#xfail: ![check_pie_support] || bfin-*-* =20 There are no relocations in this file. =20 diff --git a/ld/testsuite/ld-elf/pr23591.d b/ld/testsuite/ld-elf/pr23591.d index c9cfdfa4352..925453873e1 100644 --- a/ld/testsuite/ld-elf/pr23591.d +++ b/ld/testsuite/ld-elf/pr23591.d @@ -3,8 +3,8 @@ #source: pr23591c.s #ld: -e _start #readelf: -sW -#xfail: frv-*-linux* lm32-*-linux* -# frv-linux and lm32-linux fail with complaints about emitting dynamic +#xfail: bfin-*-*linux* frv-*-linux* lm32-*-linux* +# bfin, frv, and lm32 fail with complaints about emitting dynamic # relocations in read-only sections. =20 #... diff --git a/ld/testsuite/ld-elf/pr23648.d b/ld/testsuite/ld-elf/pr23648.d index 2990977a574..4b9b9be76e6 100644 --- a/ld/testsuite/ld-elf/pr23648.d +++ b/ld/testsuite/ld-elf/pr23648.d @@ -1,6 +1,6 @@ #ld: --gc-sections -T pr23648.t #target: [check_gc_sections_available] -#xfail: frv-*-linux* lm32-*-linux* +#xfail: bfin-*-*linux* frv-*-linux* lm32-*-linux* #nm: -B =20 #failif diff --git a/ld/testsuite/ld-misc/defsym1.d b/ld/testsuite/ld-misc/defsym1.d index b0d7c77da6d..95868c45ac5 100644 --- a/ld/testsuite/ld-misc/defsym1.d +++ b/ld/testsuite/ld-misc/defsym1.d @@ -1,7 +1,7 @@ #ld: -e 0 --defsym foo=3D1 tmpdir/start.o tmpdir/libfoo.a #nm: -B #source: dummy.s -#xfail: frv-*-linux* +#xfail: bfin-*-*linux* frv-*-linux* =20 # Check that --defsym works on archive. #failif diff --git a/ld/testsuite/ld-scripts/empty-address-1.d b/ld/testsuite/ld-sc= ripts/empty-address-1.d index c758b968f0b..a2940b3d2c9 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: 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-s= cripts/empty-address-2a.d index 0f1c0db6941..ea6048d5cd8 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: 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-s= cripts/empty-address-2b.d index b571df67dc8..95499405940 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: 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 b80b6e6bc31..8df00d9d1f4 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: frv-*-*linux* +#xfail: bfin-*-*linux* frv-*-*linux* =20 #... 0+2000 [AT] _start diff --git a/ld/testsuite/ld-scripts/pr14962.d b/ld/testsuite/ld-scripts/pr= 14962.d index b7b0c3581da..779b3c92677 100644 --- a/ld/testsuite/ld-scripts/pr14962.d +++ b/ld/testsuite/ld-scripts/pr14962.d @@ -5,6 +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-o= nly section. =20 #... 0+2000 A x diff --git a/ld/testsuite/ld-scripts/weak.exp b/ld/testsuite/ld-scripts/wea= k.exp index 654cf716164..dff087d3a2a 100644 --- a/ld/testsuite/ld-scripts/weak.exp +++ b/ld/testsuite/ld-scripts/weak.exp @@ -26,6 +26,7 @@ set testname "weak symbols" if { [is_elf_format] } { # hppa64 is incredibly broken setup_xfail hppa64-*-* + setup_xfail bfin-*-* } elseif { [is_pecoff_format] } { # Weak symbols are broken for most PE targets. if { ![istarget aarch64-*-*]