Add some expected failures for bfin linker tests

This commit is contained in:
Nick Clifton 2023-06-14 15:54:29 +01:00
parent fb221fba1a
commit 7ade0f1582
17 changed files with 22 additions and 15 deletions

View file

@ -1,6 +1,6 @@
#source: comm-data5.s #source: comm-data5.s
#ld: #ld:
#readelf: -r #readelf: -r
#xfail: frv-*-*linux* lm32-*-linux* #xfail: bfin-*-*linux* frv-*-*linux* lm32-*-linux*
There are no relocations in this file. There are no relocations in this file.

View file

@ -2,3 +2,4 @@
#ld: -e _start -T ehdr_start-missing.t --no-dynamic-linker #ld: -e _start -T ehdr_start-missing.t --no-dynamic-linker
#error: .*: undefined reference to `__ehdr_start' #error: .*: undefined reference to `__ehdr_start'
#target: *-*-linux* *-*-gnu* *-*-nacl* arm*-*-uclinuxfdpiceabi #target: *-*-linux* *-*-gnu* *-*-nacl* arm*-*-uclinuxfdpiceabi
#xfail: bfin-*-*

View file

@ -2,7 +2,7 @@
#ld: -e _start -T ehdr_start-userdef.t #ld: -e _start -T ehdr_start-userdef.t
#readelf: -Ws #readelf: -Ws
#target: *-*-linux* *-*-gnu* *-*-nacl* arm*-*-uclinuxfdpiceabi #target: *-*-linux* *-*-gnu* *-*-nacl* arm*-*-uclinuxfdpiceabi
#xfail: frv-*-* #xfail: bfin-*-* frv-*-*
#... #...
Symbol table '\.symtab' contains [0-9]+ entries: Symbol table '\.symtab' contains [0-9]+ entries:

View file

@ -2,7 +2,7 @@
#ld: -e _start -T ehdr_start-missing.t --no-dynamic-linker #ld: -e _start -T ehdr_start-missing.t --no-dynamic-linker
#nm: -n #nm: -n
#target: *-*-linux* *-*-gnu* *-*-nacl* arm*-*-uclinuxfdpiceabi #target: *-*-linux* *-*-gnu* *-*-nacl* arm*-*-uclinuxfdpiceabi
#xfail: frv-*-* #xfail: bfin-*-* frv-*-*
#failif #failif
#... #...

View file

@ -2,7 +2,7 @@
#ld: -e _start --build-id #ld: -e _start --build-id
#nm: -n #nm: -n
#target: *-*-linux* *-*-gnu* *-*-nacl* arm*-*-uclinuxfdpiceabi #target: *-*-linux* *-*-gnu* *-*-nacl* arm*-*-uclinuxfdpiceabi
#xfail: frv-*-* lm32-*-* #xfail: bfin-*-* frv-*-* lm32-*-*
#... #...
[0-9a-f]*000 [Adrt] __ehdr_start [0-9a-f]*000 [Adrt] __ehdr_start

View file

@ -4,7 +4,8 @@
#readelf : --dyn-syms --wide #readelf : --dyn-syms --wide
#warning: .*: creating DT_TEXTREL in a PIE #warning: .*: creating DT_TEXTREL in a PIE
#target: *-*-linux* *-*-gnu* *-*-solaris* arm*-*-uclinuxfdpiceabi #target: *-*-linux* *-*-gnu* *-*-solaris* arm*-*-uclinuxfdpiceabi
#xfail: ![check_pie_support] # The BFIN target always generates a relocation.
#xfail: ![check_pie_support] || bfin-*-*
Symbol table '\.dynsym' contains [0-9]+ entr(y|ies): Symbol table '\.dynsym' contains [0-9]+ entr(y|ies):
#pass #pass

View file

@ -3,7 +3,8 @@
#ld: -pie --no-dynamic-linker #ld: -pie --no-dynamic-linker
#readelf: -r -x .data.rel.ro #readelf: -r -x .data.rel.ro
#target: *-*-linux* *-*-gnu* *-*-nacl* arm*-*-uclinuxfdpiceabi #target: *-*-linux* *-*-gnu* *-*-nacl* arm*-*-uclinuxfdpiceabi
#xfail: ![check_pie_support] # The BFIN target always generates a relocation.
#xfail: ![check_pie_support] || bfin-*-*
There are no relocations in this file. There are no relocations in this file.

View file

@ -4,7 +4,8 @@
#readelf: -r -x .data.rel.ro #readelf: -r -x .data.rel.ro
#warning: -z dynamic-undefined-weak ignored #warning: -z dynamic-undefined-weak ignored
#target: *-*-linux* *-*-gnu* *-*-nacl* arm*-*-uclinuxfdpiceabi #target: *-*-linux* *-*-gnu* *-*-nacl* arm*-*-uclinuxfdpiceabi
#xfail: ![check_pie_support] # The BFIN target always generates a relocation.
#xfail: ![check_pie_support] || bfin-*-*
There are no relocations in this file. There are no relocations in this file.

View file

@ -3,8 +3,8 @@
#source: pr23591c.s #source: pr23591c.s
#ld: -e _start #ld: -e _start
#readelf: -sW #readelf: -sW
#xfail: frv-*-linux* lm32-*-linux* #xfail: bfin-*-*linux* frv-*-linux* lm32-*-linux*
# frv-linux and lm32-linux fail with complaints about emitting dynamic # bfin, frv, and lm32 fail with complaints about emitting dynamic
# relocations in read-only sections. # relocations in read-only sections.
#... #...

View file

@ -1,6 +1,6 @@
#ld: --gc-sections -T pr23648.t #ld: --gc-sections -T pr23648.t
#target: [check_gc_sections_available] #target: [check_gc_sections_available]
#xfail: frv-*-linux* lm32-*-linux* #xfail: bfin-*-*linux* frv-*-linux* lm32-*-linux*
#nm: -B #nm: -B
#failif #failif

View file

@ -1,7 +1,7 @@
#ld: -e 0 --defsym foo=1 tmpdir/start.o tmpdir/libfoo.a #ld: -e 0 --defsym foo=1 tmpdir/start.o tmpdir/libfoo.a
#nm: -B #nm: -B
#source: dummy.s #source: dummy.s
#xfail: frv-*-linux* #xfail: bfin-*-*linux* frv-*-linux*
# Check that --defsym works on archive. # Check that --defsym works on archive.
#failif #failif

View file

@ -1,6 +1,6 @@
#ld: -T empty-address-1.t #ld: -T empty-address-1.t
#nm: -n #nm: -n
#xfail: frv-*-*linux* #xfail: bfin-*-*linux* frv-*-*linux*
#... #...
0+0 [AT] _start 0+0 [AT] _start
#... #...

View file

@ -1,7 +1,7 @@
#source: empty-address-2.s #source: empty-address-2.s
#ld: -Ttext 0x0000000 -Tdata 0x200 -T empty-address-2a.t #ld: -Ttext 0x0000000 -Tdata 0x200 -T empty-address-2a.t
#nm: -n #nm: -n
#xfail: frv-*-*linux* riscv64*-*-* tic54x-*-* #xfail: bfin-*-*linux* frv-*-*linux* riscv64*-*-* tic54x-*-*
#... #...
0+0 T _start 0+0 T _start
#... #...

View file

@ -1,7 +1,7 @@
#source: empty-address-2.s #source: empty-address-2.s
#ld: -Ttext 0x0000000 -Tdata 0x200 -T empty-address-2b.t #ld: -Ttext 0x0000000 -Tdata 0x200 -T empty-address-2b.t
#nm: -n #nm: -n
#xfail: frv-*-*linux* riscv64*-*-* tic54x-*-* #xfail: bfin-*-*linux* frv-*-*linux* riscv64*-*-* tic54x-*-*
#... #...
0+0 T _start 0+0 T _start
#... #...

View file

@ -1,7 +1,7 @@
#ld: -T pr14962-2.t #ld: -T pr14962-2.t
#source: pr14962a.s #source: pr14962a.s
#nm: -n #nm: -n
#xfail: frv-*-*linux* #xfail: bfin-*-*linux* frv-*-*linux*
#... #...
0+2000 [AT] _start 0+2000 [AT] _start

View file

@ -5,6 +5,8 @@
#xfail: mmix-knuth-mmixware #xfail: mmix-knuth-mmixware
# The reference to x would normally generate a cross-reference error # The reference to x would normally generate a cross-reference error
# but the linker script converts x to absolute to avoid the 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.
#... #...
0+2000 A x 0+2000 A x

View file

@ -26,6 +26,7 @@ set testname "weak symbols"
if { [is_elf_format] } { if { [is_elf_format] } {
# hppa64 is incredibly broken # hppa64 is incredibly broken
setup_xfail hppa64-*-* setup_xfail hppa64-*-*
setup_xfail bfin-*-*
} elseif { [is_pecoff_format] } { } elseif { [is_pecoff_format] } {
# Weak symbols are broken for most PE targets. # Weak symbols are broken for most PE targets.
if { ![istarget aarch64-*-*] if { ![istarget aarch64-*-*]