forked from Imagelibrary/binutils-gdb
ld testsuite use of notarget
Much of the time it is better to use xfail rather than notarget to hide a testsuite failure no one is planning on fixing. 1) When a target is fixed, an inappropriate xfail results in XPASS whereas notarget is silent. Leaving in an inappropriate notarget entry risks the bug reappearing later, silently. 2) Tests might be used as a template for a new test, carrying over notarget and/or xfail. Inappropriate notarget entries are silent. 3) An xfailed test that mysteriously XPASSes might actually indicate a bug. * testsuite/ld-elf/attributes.d: Use xfail rather than notarget. * testsuite/ld-elf/hash.d: Likewise. * testsuite/ld-elf/orphan-10.d: Likewise. * testsuite/ld-elf/overlay.d: Likewise. * testsuite/ld-elf/pr14926.d: Likewise. * testsuite/ld-elf/pr17550d.d: Likewise. * testsuite/ld-elf/pr19539.d: Likewise. * testsuite/ld-elf/pr22319.d: Likewise. * testsuite/ld-misc/defsym1.d: Likewise. * testsuite/ld-pe/pr19803.d: Likewise. * testsuite/ld-scripts/assign-loc.d: Likewise. * testsuite/ld-scripts/defined4.d: Likewise. * testsuite/ld-scripts/empty-address-1.d: Likewise. * testsuite/ld-scripts/empty-address-2a.d: Likewise. * testsuite/ld-scripts/empty-address-2b.d: Likewise. * testsuite/ld-scripts/fill.d: Likewise. * testsuite/ld-scripts/fill16.d: Likewise. * testsuite/ld-scripts/pr14962.d: Likewise. * testsuite/ld-scripts/pr14962-2.d: Likewise. * testsuite/ld-unique/pr21529.d: Likewise. * testsuite/ld-elf/compress1a.d: Likewise, and adjust targets. * testsuite/ld-elf/compressed1a.d: Likewise. * testsuite/ld-elf/compressed1d.d: Likewise. * testsuite/ld-elf/compressed1e.d: Likewise. * testsuite/ld-elf/eh5.d: Likewise. * testsuite/ld-elf/group8a.d: Likewise. * testsuite/ld-elf/linkonce2.d: Likewise. * testsuite/ld-elf/orphan-9.d: Likewise. * testsuite/ld-elf/pr17550a.d: Likewise. * testsuite/ld-elf/pr17550b.d: Likewise. * testsuite/ld-elf/pr17550c.d: Likewise. * testsuite/ld-elf/pr19162.d: Likewise. * testsuite/ld-elf/pr21884.d: Likewise. * testsuite/ld-gc/pr19167.d: Likewise. * testsuite/ld-gc/pr20022.d: Likewise. * testsuite/ld-gc/start.d: Likewise. * testsuite/ld-elf/orphan-11.d: Delete notarget. * testsuite/ld-elf/orphan-12.d: Likewise. * testsuite/ld-gc/stop.d: Likewise. * testsuite/ld-scripts/empty-address-3a.d: Likewise. * testsuite/ld-scripts/empty-address-3b.d: Likewise. * testsuite/ld-ifunc/pr17154-x86-64-now.d: Delete duplicate notarget. * testsuite/ld-scripts/section-match-1.d: Comment fix.
This commit is contained in:
46
ld/ChangeLog
46
ld/ChangeLog
@@ -1,3 +1,49 @@
|
|||||||
|
2018-07-10 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
|
* testsuite/ld-elf/attributes.d: Use xfail rather than notarget.
|
||||||
|
* testsuite/ld-elf/hash.d: Likewise.
|
||||||
|
* testsuite/ld-elf/orphan-10.d: Likewise.
|
||||||
|
* testsuite/ld-elf/overlay.d: Likewise.
|
||||||
|
* testsuite/ld-elf/pr14926.d: Likewise.
|
||||||
|
* testsuite/ld-elf/pr17550d.d: Likewise.
|
||||||
|
* testsuite/ld-elf/pr19539.d: Likewise.
|
||||||
|
* testsuite/ld-elf/pr22319.d: Likewise.
|
||||||
|
* testsuite/ld-misc/defsym1.d: Likewise.
|
||||||
|
* testsuite/ld-pe/pr19803.d: Likewise.
|
||||||
|
* testsuite/ld-scripts/assign-loc.d: Likewise.
|
||||||
|
* testsuite/ld-scripts/defined4.d: Likewise.
|
||||||
|
* testsuite/ld-scripts/empty-address-1.d: Likewise.
|
||||||
|
* testsuite/ld-scripts/empty-address-2a.d: Likewise.
|
||||||
|
* testsuite/ld-scripts/empty-address-2b.d: Likewise.
|
||||||
|
* testsuite/ld-scripts/fill.d: Likewise.
|
||||||
|
* testsuite/ld-scripts/fill16.d: Likewise.
|
||||||
|
* testsuite/ld-scripts/pr14962.d: Likewise.
|
||||||
|
* testsuite/ld-scripts/pr14962-2.d: Likewise.
|
||||||
|
* testsuite/ld-unique/pr21529.d: Likewise.
|
||||||
|
* testsuite/ld-elf/compress1a.d: Likewise, and adjust targets.
|
||||||
|
* testsuite/ld-elf/compressed1a.d: Likewise.
|
||||||
|
* testsuite/ld-elf/compressed1d.d: Likewise.
|
||||||
|
* testsuite/ld-elf/compressed1e.d: Likewise.
|
||||||
|
* testsuite/ld-elf/eh5.d: Likewise.
|
||||||
|
* testsuite/ld-elf/group8a.d: Likewise.
|
||||||
|
* testsuite/ld-elf/linkonce2.d: Likewise.
|
||||||
|
* testsuite/ld-elf/orphan-9.d: Likewise.
|
||||||
|
* testsuite/ld-elf/pr17550a.d: Likewise.
|
||||||
|
* testsuite/ld-elf/pr17550b.d: Likewise.
|
||||||
|
* testsuite/ld-elf/pr17550c.d: Likewise.
|
||||||
|
* testsuite/ld-elf/pr19162.d: Likewise.
|
||||||
|
* testsuite/ld-elf/pr21884.d: Likewise.
|
||||||
|
* testsuite/ld-gc/pr19167.d: Likewise.
|
||||||
|
* testsuite/ld-gc/pr20022.d: Likewise.
|
||||||
|
* testsuite/ld-gc/start.d: Likewise.
|
||||||
|
* testsuite/ld-elf/orphan-11.d: Delete notarget.
|
||||||
|
* testsuite/ld-elf/orphan-12.d: Likewise.
|
||||||
|
* testsuite/ld-gc/stop.d: Likewise.
|
||||||
|
* testsuite/ld-scripts/empty-address-3a.d: Likewise.
|
||||||
|
* testsuite/ld-scripts/empty-address-3b.d: Likewise.
|
||||||
|
* testsuite/ld-ifunc/pr17154-x86-64-now.d: Delete duplicate notarget.
|
||||||
|
* testsuite/ld-scripts/section-match-1.d: Comment fix.
|
||||||
|
|
||||||
2018-07-10 Maciej W. Rozycki <macro@mips.com>
|
2018-07-10 Maciej W. Rozycki <macro@mips.com>
|
||||||
|
|
||||||
* testsuite/ld-mips-elf/elf-rel-got-n64.d: Rename to...
|
* testsuite/ld-mips-elf/elf-rel-got-n64.d: Rename to...
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#name: Symbol flags copy
|
#name: Symbol flags copy
|
||||||
#ld: -T attributes.ld
|
#ld: -T attributes.ld
|
||||||
#objdump: -t
|
#objdump: -t
|
||||||
#notarget: pj-*-* dlx-*-* d30v-*-*
|
#xfail: pj-*-* dlx-*-* d30v-*-*
|
||||||
|
|
||||||
#...
|
#...
|
||||||
0+0000000 g F .text 0+0000000 __start
|
0+0000000 g F .text 0+0000000 __start
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
#as: --compress-debug-sections
|
#as: --compress-debug-sections
|
||||||
#ld: -e func_cu2
|
#ld: -e func_cu2
|
||||||
#readelf: -S --wide
|
#readelf: -S --wide
|
||||||
#notarget: alpha-*
|
#xfail: alpha-*-*ecoff
|
||||||
|
|
||||||
#failif
|
#failif
|
||||||
#...
|
#...
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
#as: --compress-debug-sections=zlib-gabi
|
#as: --compress-debug-sections=zlib-gabi
|
||||||
#ld: -e func_cu2
|
#ld: -e func_cu2
|
||||||
#readelf: -t
|
#readelf: -t
|
||||||
#notarget: alpha-*
|
#xfail: alpha-*-*ecoff
|
||||||
|
|
||||||
#failif
|
#failif
|
||||||
#...
|
#...
|
||||||
|
|||||||
@@ -2,7 +2,8 @@
|
|||||||
#as: --compress-debug-sections=none
|
#as: --compress-debug-sections=none
|
||||||
#ld: -r --compress-debug-sections=zlib-gnu
|
#ld: -r --compress-debug-sections=zlib-gnu
|
||||||
#readelf: -SW
|
#readelf: -SW
|
||||||
#notarget: d30v-*-* dlx-*-* fr30-*-* frv-*-* ft32-*-* iq2000-*-* mn10200-*-* moxie-*-* msp430-*-* mt-*-* or1k-*-* pj-*-* riscv*-*-*
|
#xfail: d30v-*-* dlx-*-* fr30-*-* frv-*-elf ft32-*-* iq2000-*-*
|
||||||
|
#xfail: mn10200-*-* moxie-*-* msp430-*-* mt-*-* pj-*-* riscv*-*-*
|
||||||
# Not all ELF targets use the elf.em emulation...
|
# Not all ELF targets use the elf.em emulation...
|
||||||
# RISC-V has linker relaxations that delete code, so text label subtractions
|
# RISC-V has linker relaxations that delete code, so text label subtractions
|
||||||
# do not get resolved at assembly time, which results in a compressed section.
|
# do not get resolved at assembly time, which results in a compressed section.
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
#ld: -shared --compress-debug-sections=zlib-gnu
|
#ld: -shared --compress-debug-sections=zlib-gnu
|
||||||
#readelf: -SW
|
#readelf: -SW
|
||||||
#target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi
|
#target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi
|
||||||
#notarget: cris*-*-elf frv-*-*
|
#xfail: cris*-*-elf frv-*-elf
|
||||||
|
|
||||||
#failif
|
#failif
|
||||||
#...
|
#...
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
#ld:
|
#ld:
|
||||||
#readelf: -wf
|
#readelf: -wf
|
||||||
#target: cfi
|
#target: cfi
|
||||||
#notarget: alpha* hppa64* tile* visium*
|
#xfail: alpha-*-*ecoff hppa64-*-* tile*-*-* visium-*-*
|
||||||
|
|
||||||
Contents of the .eh_frame section:
|
Contents of the .eh_frame section:
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,8 @@
|
|||||||
#source: group8.s
|
#source: group8.s
|
||||||
#ld: -r --gc-sections --entry foo
|
#ld: -r --gc-sections --entry foo
|
||||||
#readelf: -g --wide
|
#readelf: -g --wide
|
||||||
#notarget: d30v-*-* dlx-*-* pj*-*-* pru-*-*
|
#xfail: cr16-*-* crx-*-* d30v-*-* dlx-*-* hppa64-*-*
|
||||||
#notarget: hppa64-*-* ia64-*-* mep-*-* mn10200-*-*
|
#xfail: mep-*-* mn10200-*-* pj*-*-* pru-*-*
|
||||||
#xfail: cr16-*-* crx-*-*
|
|
||||||
# generic linker targets don't support --gc-sections, nor do a bunch of others
|
# generic linker targets don't support --gc-sections, nor do a bunch of others
|
||||||
# cr16 and crx use non-standard scripts with memory regions, which don't play
|
# cr16 and crx use non-standard scripts with memory regions, which don't play
|
||||||
# well with unique group sections under ld -r.
|
# well with unique group sections under ld -r.
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
#readelf: -d -s -D
|
#readelf: -d -s -D
|
||||||
#ld: -shared --hash-style=gnu
|
#ld: -shared --hash-style=gnu
|
||||||
#target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi
|
#target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi
|
||||||
#notarget: mips*-*-*
|
#xfail: mips*-*-*
|
||||||
|
|
||||||
#...
|
#...
|
||||||
+0x[0-9a-z]+ +\(GNU_HASH\) +0x[0-9a-z]+
|
+0x[0-9a-z]+ +\(GNU_HASH\) +0x[0-9a-z]+
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
#source: linkonce1b.s
|
#source: linkonce1b.s
|
||||||
#ld: -emit-relocs
|
#ld: -emit-relocs
|
||||||
#objdump: -r
|
#objdump: -r
|
||||||
#notarget: arc*-*-* d30v-*-* dlx-*-* pj*-*-*
|
#xfail: d30v-*-* dlx-*-* pj*-*-*
|
||||||
# generic elf targets don't emit relocs
|
# generic elf targets don't emit relocs
|
||||||
|
|
||||||
.*: file format .*
|
.*: file format .*
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
#source: orphan-10.s
|
#source: orphan-10.s
|
||||||
#ld: -N -T orphan-9.ld
|
#ld: -N -T orphan-9.ld
|
||||||
#objdump: -h
|
#objdump: -h
|
||||||
#notarget: d30v-* dlx-* fr30-* frv-* ft32-* iq2000-* mn10200-* moxie-* ms1-* msp430-* mt-* pj-*
|
#xfail: d30v-* dlx-* fr30-* frv-*-elf ft32-* iq2000-*
|
||||||
|
#xfail: mn10200-* moxie-* ms1-* msp430-* mt-* pj-*
|
||||||
|
|
||||||
#...
|
#...
|
||||||
. \.text 0+(08|10) [0-9a-f]+ 0+200 .*
|
. \.text 0+(08|10) [0-9a-f]+ 0+200 .*
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
#source: orphan-11.s
|
#source: orphan-11.s
|
||||||
#ld: -T orphan-11.ld --orphan-handling=error
|
#ld: -T orphan-11.ld --orphan-handling=error
|
||||||
#objdump: -wh
|
#objdump: -wh
|
||||||
#notarget: d30v-* dlx-* fr30-* frv-* ft32-* iq2000-* mn10200-* moxie-* ms1-* msp430-* mt-* pj-*
|
|
||||||
|
|
||||||
#...
|
#...
|
||||||
. \.text .*
|
. \.text .*
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
#source: orphan-12.s
|
#source: orphan-12.s
|
||||||
#ld: -T orphan-11.ld --strip-debug --orphan-handling=error
|
#ld: -T orphan-11.ld --strip-debug --orphan-handling=error
|
||||||
#objdump: -wh
|
#objdump: -wh
|
||||||
#notarget: d30v-* dlx-* fr30-* frv-* ft32-* iq2000-* mn10200-* moxie-* ms1-* msp430-* mt-* pj-*
|
|
||||||
|
|
||||||
#...
|
#...
|
||||||
. \.text .*
|
. \.text .*
|
||||||
|
|||||||
@@ -1,7 +1,8 @@
|
|||||||
#source: orphan-9.s
|
#source: orphan-9.s
|
||||||
#ld: -N -T orphan-9.ld
|
#ld: -N -T orphan-9.ld
|
||||||
#objdump: -h
|
#objdump: -h
|
||||||
#notarget: d30v-* dlx-* fr30-* frv-* ft32-* iq2000-* mn10200-* moxie-* ms1-* msp430-* mt-* pj-*
|
#xfail: d30v-* dlx-* fr30-* frv-*-elf ft32-* iq2000-*
|
||||||
|
#xfail: mn10200-* moxie-* ms1-* msp430-* mt-* pj-*
|
||||||
|
|
||||||
#...
|
#...
|
||||||
. \.text 0+(08|10) [0-9a-f]+ 0+200 .*
|
. \.text 0+(08|10) [0-9a-f]+ 0+200 .*
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# ld: -T overlay.t -u __load_start_text1 -u __load_start_text2 -u __load_stop_text1 -u __load_stop_text2
|
# ld: -T overlay.t -u __load_start_text1 -u __load_start_text2 -u __load_stop_text1 -u __load_stop_text2
|
||||||
#readelf: -s
|
#readelf: -s
|
||||||
#notarget: spu-*-*
|
#xfail: spu-*-*
|
||||||
# The SPU adds its own LOAD segments, out of order, at the start of the program header table.
|
# The SPU adds its own LOAD segments, out of order, at the start of the program header table.
|
||||||
|
|
||||||
#...
|
#...
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#ld: -Ttext=0x60
|
#ld: -Ttext=0x60
|
||||||
#readelf: -S --wide
|
#readelf: -S --wide
|
||||||
#notarget: d10v-* m68hc1*-* msp*-* visium-* xgate-* xstormy*-* pru-*-* s12z-*-*
|
#xfail: d10v-* m68hc1*-* msp*-* pru-*-* s12z-*-* visium-* xgate-* xstormy*-*
|
||||||
# the above targets use memory regions that don't allow 0x60 for .text
|
# the above targets use memory regions that don't allow 0x60 for .text
|
||||||
|
|
||||||
#...
|
#...
|
||||||
|
|||||||
@@ -2,11 +2,10 @@
|
|||||||
#source: pr17550-2.s
|
#source: pr17550-2.s
|
||||||
#ld: -r
|
#ld: -r
|
||||||
#readelf: -s --wide
|
#readelf: -s --wide
|
||||||
#notarget: alpha-*-* cr16-*-* crx-*-* d30v-*-* dlx-*-* pj*-*-*
|
#xfail: alpha-*-* cr16-*-* crx-*-*
|
||||||
# Disabled on alpha because alpha has a different .set directive.
|
# Disabled on alpha because alpha has a different .set directive.
|
||||||
# cr16 and crx use non-standard scripts with memory regions, which don't
|
# cr16 and crx use non-standard scripts with memory regions, which don't
|
||||||
# play well with comdat group sections under ld -r. Generic linker
|
# play well with comdat group sections under ld -r.
|
||||||
# targets don't support comdat group sections.
|
|
||||||
|
|
||||||
#failif
|
#failif
|
||||||
#...
|
#...
|
||||||
|
|||||||
@@ -2,11 +2,10 @@
|
|||||||
#source: pr17550-1.s
|
#source: pr17550-1.s
|
||||||
#ld: -r
|
#ld: -r
|
||||||
#readelf: -s --wide
|
#readelf: -s --wide
|
||||||
#notarget: alpha-*-* cr16-*-* crx-*-* d30v-*-* dlx-*-* pj*-*-*
|
#xfail: alpha-*-* cr16-*-* crx-*-*
|
||||||
# Disabled on alpha because alpha has a different .set directive.
|
# Disabled on alpha because alpha has a different .set directive.
|
||||||
# cr16 and crx use non-standard scripts with memory regions, which don't
|
# cr16 and crx use non-standard scripts with memory regions, which don't
|
||||||
# play well with comdat group sections under ld -r. Generic linker
|
# play well with comdat group sections under ld -r.
|
||||||
# targets don't support comdat group sections.
|
|
||||||
|
|
||||||
#failif
|
#failif
|
||||||
#...
|
#...
|
||||||
|
|||||||
@@ -2,8 +2,6 @@
|
|||||||
#source: pr17550-3.s
|
#source: pr17550-3.s
|
||||||
#ld: -r
|
#ld: -r
|
||||||
#error: .*: defined in discarded section `\.data\[foo_group\]'
|
#error: .*: defined in discarded section `\.data\[foo_group\]'
|
||||||
#notarget: alpha-*-* cr16-*-* crx-*-* d30v-*-* dlx-*-* pj*-*-*
|
#xfail: alpha-*-* d30v-*-* dlx-*-* pj*-*-*
|
||||||
# Disabled on alpha because alpha has a different .set directive.
|
# Disabled on alpha because alpha has a different .set directive.
|
||||||
# cr16 and crx use non-standard scripts with memory regions, which don't
|
# Generic linker targets don't support comdat group sections.
|
||||||
# play well with comdat group sections under ld -r. Generic linker
|
|
||||||
# targets don't support comdat group sections.
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
#source: pr17550-4.s
|
#source: pr17550-4.s
|
||||||
#ld: -r
|
#ld: -r
|
||||||
#readelf: -s --wide
|
#readelf: -s --wide
|
||||||
#notarget: alpha-*-* cr16-*-* crx-*-* d30v-*-* dlx-*-* pj*-*-*
|
#xfail: alpha-*-* cr16-*-* crx-*-* d30v-*-* dlx-*-* pj*-*-*
|
||||||
# Disabled on alpha because alpha has a different .set directive.
|
# Disabled on alpha because alpha has a different .set directive.
|
||||||
# cr16 and crx use non-standard scripts with memory regions, which don't
|
# cr16 and crx use non-standard scripts with memory regions, which don't
|
||||||
# play well with comdat group sections under ld -r. Generic linker
|
# play well with comdat group sections under ld -r. Generic linker
|
||||||
|
|||||||
@@ -3,8 +3,7 @@
|
|||||||
#ld: -shared -z max-page-size=0x200000 -z noseparate-code
|
#ld: -shared -z max-page-size=0x200000 -z noseparate-code
|
||||||
#readelf: -l --wide
|
#readelf: -l --wide
|
||||||
#target: *-*-linux* *-*-gnu* *-*-nacl* arm*-*-uclinuxfdpiceabi
|
#target: *-*-linux* *-*-gnu* *-*-nacl* arm*-*-uclinuxfdpiceabi
|
||||||
#notarget: arc*-*-* hppa*-*-*
|
#xfail: hppa*-*-*
|
||||||
# arc target has an extra 64K stack section.
|
|
||||||
# hppa fails due to PR 12376.
|
# hppa fails due to PR 12376.
|
||||||
|
|
||||||
#...
|
#...
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
#ld: -pie -T pr19539.t
|
#ld: -pie -T pr19539.t
|
||||||
#readelf : --dyn-syms --wide
|
#readelf : --dyn-syms --wide
|
||||||
#target: *-*-linux* *-*-gnu* *-*-solaris* arm*-*-uclinuxfdpiceabi
|
#target: *-*-linux* *-*-gnu* *-*-solaris* arm*-*-uclinuxfdpiceabi
|
||||||
#notarget: cris*-*-* alpha-*-*
|
#xfail: cris*-*-* alpha-*-*
|
||||||
|
|
||||||
Symbol table '\.dynsym' contains [0-9]+ entr(y|ies):
|
Symbol table '\.dynsym' contains [0-9]+ entr(y|ies):
|
||||||
#pass
|
#pass
|
||||||
|
|||||||
@@ -2,7 +2,8 @@
|
|||||||
#source: pr21884b.s
|
#source: pr21884b.s
|
||||||
#ld: -T pr21884.t
|
#ld: -T pr21884.t
|
||||||
#objdump: -b binary -s
|
#objdump: -b binary -s
|
||||||
#notarget: aarch64*-*-* arm*-*-* avr-*-* hppa-*-* ia64-*-* m68hc1*-*-* nds32*-*-* riscv*-*-* score-*-* v850-*-*
|
#xfail: aarch64*-*-* arm*-*-* avr-*-* ia64-*-* m68hc1*-*-* nds32*-*-*
|
||||||
|
#xfail: riscv*-*-* score-*-* v850-*-*
|
||||||
# Skip targets which can't change output format to binary.
|
# Skip targets which can't change output format to binary.
|
||||||
|
|
||||||
.*: file format binary
|
.*: file format binary
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#name: PR 22319 - required undefined symbols in output
|
#name: PR 22319 - required undefined symbols in output
|
||||||
#ld: -u undefined_symbol -e 0
|
#ld: -u undefined_symbol -e 0
|
||||||
#nm: -u
|
#nm: -u
|
||||||
#notarget: dlx-*-*
|
#xfail: dlx-*-*
|
||||||
# The DLX target fails because it needs a special linker script to handle file symbols.
|
# The DLX target fails because it needs a special linker script to handle file symbols.
|
||||||
|
|
||||||
[ ]+U+[ ]+undefined_symbol
|
[ ]+U+[ ]+undefined_symbol
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
#ld: --gc-sections -e _start
|
#ld: --gc-sections -e _start
|
||||||
#objdump: -s -j _foo
|
#objdump: -s -j _foo
|
||||||
#target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi
|
#target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi
|
||||||
#notarget: frv-*-linux* metag-*-linux*
|
#xfail: frv-*-* metag-*-*
|
||||||
|
|
||||||
#...
|
#...
|
||||||
Contents of section _foo:
|
Contents of section _foo:
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
#ld: --gc-sections -e _start tmpdir/pr20022.so
|
#ld: --gc-sections -e _start tmpdir/pr20022.so
|
||||||
#readelf: -SsW
|
#readelf: -SsW
|
||||||
#target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi
|
#target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi
|
||||||
#notarget: frv-*-linux* metag-*-linux* mips*-*-*
|
#xfail: frv-*-* metag-*-* mips*-*-*
|
||||||
# Skip on targets without dynamic relocations in .text section.
|
# Skip on targets without dynamic relocations in .text section.
|
||||||
|
|
||||||
#...
|
#...
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
#ld: --gc-sections -e _start
|
#ld: --gc-sections -e _start
|
||||||
#nm: -n
|
#nm: -n
|
||||||
#target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi
|
#target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi
|
||||||
#notarget: frv-*-linux* metag-*-linux*
|
#xfail: frv-*-* metag-*-*
|
||||||
|
|
||||||
#...
|
#...
|
||||||
[0-9a-f]+ D +__start__foo
|
[0-9a-f]+ D +__start__foo
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
#ld: --gc-sections -e _start
|
#ld: --gc-sections -e _start
|
||||||
#nm: -n
|
#nm: -n
|
||||||
#target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi
|
#target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi
|
||||||
#notarget: frv-*-linux* metag-*-linux*
|
|
||||||
|
|
||||||
#failif
|
#failif
|
||||||
#...
|
#...
|
||||||
|
|||||||
@@ -4,7 +4,6 @@
|
|||||||
#objdump: -dw
|
#objdump: -dw
|
||||||
#target: x86_64-*-*
|
#target: x86_64-*-*
|
||||||
#notarget: x86_64-*-nacl*
|
#notarget: x86_64-*-nacl*
|
||||||
#notarget: x86_64-*-nacl*
|
|
||||||
|
|
||||||
.*: +file format .*
|
.*: +file format .*
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
#notarget: frv-*-linux*
|
#xfail: frv-*-linux*
|
||||||
|
|
||||||
# Check that --defsym works on archive.
|
# Check that --defsym works on archive.
|
||||||
#failif
|
#failif
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#ld: -shared --out-implib dx.dll.a --gc-sections
|
#ld: -shared --out-implib dx.dll.a --gc-sections
|
||||||
#objdump: --syms
|
#objdump: --syms
|
||||||
#notarget: mcore-*
|
#xfail: mcore-*
|
||||||
#
|
#
|
||||||
# The MCORE-PE target does not support -shared.
|
# The MCORE-PE target does not support -shared.
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#ld: -T assign-loc.t
|
#ld: -T assign-loc.t
|
||||||
#source: data.s
|
#source: data.s
|
||||||
#nm: -n
|
#nm: -n
|
||||||
#notarget: powerpc*-*-aix* rs6000-*-aix*
|
#xfail: powerpc*-*-aix* rs6000-*-aix*
|
||||||
#...
|
#...
|
||||||
0+0100 A HEAP_SIZE
|
0+0100 A HEAP_SIZE
|
||||||
#...
|
#...
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
#nm: -B
|
#nm: -B
|
||||||
#source: defined4.s
|
#source: defined4.s
|
||||||
#xfail: powerpc*-*-aix* rs6000-*-aix*
|
#xfail: powerpc*-*-aix* rs6000-*-aix*
|
||||||
#notarget: mips*-*-* mmix-*-*
|
#xfail: mips*-*-* mmix-*-*
|
||||||
# We check that defined and defined1 have the same address. MIPS targets
|
# We check that defined and defined1 have the same address. MIPS targets
|
||||||
# use different address. MMIX puts defined and defined1 in text section.
|
# use different address. MMIX puts defined and defined1 in text section.
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#ld: -T empty-address-1.t
|
#ld: -T empty-address-1.t
|
||||||
#nm: -n
|
#nm: -n
|
||||||
#notarget: frv-*-*linux*
|
#xfail: frv-*-*linux*
|
||||||
#...
|
#...
|
||||||
0+0 T _start
|
0+0 T _start
|
||||||
#...
|
#...
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#source: empty-address-2.s
|
#source: empty-address-2.s
|
||||||
#ld: -Ttext 0x0000000 -Tdata 0x2000000 -T empty-address-2a.t
|
#ld: -Ttext 0x0000000 -Tdata 0x2000000 -T empty-address-2a.t
|
||||||
#nm: -n
|
#nm: -n
|
||||||
#notarget: frv-*-*linux*
|
#xfail: frv-*-*linux*
|
||||||
#...
|
#...
|
||||||
0+0 T _start
|
0+0 T _start
|
||||||
#...
|
#...
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#source: empty-address-2.s
|
#source: empty-address-2.s
|
||||||
#ld: -Ttext 0x0000000 -Tdata 0x2000000 -T empty-address-2b.t
|
#ld: -Ttext 0x0000000 -Tdata 0x2000000 -T empty-address-2b.t
|
||||||
#nm: -n
|
#nm: -n
|
||||||
#notarget: frv-*-*linux*
|
#xfail: frv-*-*linux*
|
||||||
#...
|
#...
|
||||||
0+0 T _start
|
0+0 T _start
|
||||||
#...
|
#...
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#source: empty-address-3.s
|
#source: empty-address-3.s
|
||||||
#ld: -T empty-address-3a.t
|
#ld: -T empty-address-3a.t
|
||||||
#nm: -n
|
#nm: -n
|
||||||
#notarget: mmix-knuth-mmixware
|
|
||||||
#...
|
#...
|
||||||
0+0 T _start
|
0+0 T _start
|
||||||
#...
|
#...
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#source: empty-address-3.s
|
#source: empty-address-3.s
|
||||||
#ld: -T empty-address-3b.t
|
#ld: -T empty-address-3b.t
|
||||||
#nm: -n
|
#nm: -n
|
||||||
#notarget: mmix-knuth-mmixware
|
|
||||||
#...
|
#...
|
||||||
0+0 T _start
|
0+0 T _start
|
||||||
#...
|
#...
|
||||||
|
|||||||
@@ -3,18 +3,11 @@
|
|||||||
#source: fill_2.s
|
#source: fill_2.s
|
||||||
#ld: -T fill.t
|
#ld: -T fill.t
|
||||||
#objdump: -s -j .text
|
#objdump: -s -j .text
|
||||||
#notarget: ia64-*-*
|
#xfail: alpha*-*-*ecoff ia64-*-* m32c-*-* mips*-*-freebsd* mips*-*-gnu*
|
||||||
#notarget: mips*-*-irix* mips*-*-linux* mips*-*-freebsd* mips*-*-gnu*
|
#xfail: mips*-*-irix* mips*-*-kfreebsd* mips*-*-linux* mips*-*-netbsd*
|
||||||
#notarget: mips*-*-kfreebsd* mips*-*-netbsd* mips*-*-openbsd* mips*-*-sysv4*
|
#xfail: mips*-*-openbsd* mips*-*-sysv4* sh-*-pe sparc*-*-coff
|
||||||
#notarget: tilegx*-*-*
|
#xfail: tic30-*-coff tic4x-*-* tic54x-*-* tilegx*-*-* tilepro-*-*
|
||||||
#notarget: tilepro-*-*
|
#xfail: x86_64-*-cygwin x86_64-*-mingw* x86_64-*-pe* z8k-*-*
|
||||||
#notarget: x86_64-*-cygwin x86_64-*-mingw* x86_64-*-pe*
|
|
||||||
#xfail: alpha*-*-*ecoff
|
|
||||||
#xfail: m32c-*-*
|
|
||||||
#xfail: sh-*-pe
|
|
||||||
#xfail: sparc*-*-coff
|
|
||||||
#xfail: tic30-*-coff tic4x-*-* tic54x-*-*
|
|
||||||
#xfail: z8k-*-*
|
|
||||||
#
|
#
|
||||||
# See also fill16.d. We use `notarget' for configurations unsupported
|
# See also fill16.d. We use `notarget' for configurations unsupported
|
||||||
# here that are covered there, and `xfail' for configurations that work
|
# here that are covered there, and `xfail' for configurations that work
|
||||||
|
|||||||
@@ -3,14 +3,8 @@
|
|||||||
#source: fill16_2.s
|
#source: fill16_2.s
|
||||||
#ld: -T fill.t
|
#ld: -T fill.t
|
||||||
#objdump: -s -j .text
|
#objdump: -s -j .text
|
||||||
#notarget: arm-*-coff
|
#xfail: alpha*-*-*ecoff arm-*-coff i[3-7]86-*-coff m32c-*-* sh-*-pe
|
||||||
#notarget: i[3-7]86-*-coff
|
#xfail: sparc*-*-coff tic30-*-coff tic4x-*-* tic54x-*-* z8k-*-*
|
||||||
#xfail: alpha*-*-*ecoff
|
|
||||||
#xfail: m32c-*-*
|
|
||||||
#xfail: sh-*-pe
|
|
||||||
#xfail: sparc*-*-coff
|
|
||||||
#xfail: tic30-*-coff tic4x-*-* tic54x-*-*
|
|
||||||
#xfail: z8k-*-*
|
|
||||||
#
|
#
|
||||||
# See also fill.d. We use `notarget' for configurations unsupported
|
# See also fill.d. We use `notarget' for configurations unsupported
|
||||||
# here that are covered there, and `xfail' for configurations that work
|
# here that are covered there, and `xfail' for configurations that work
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
#ld: -T pr14962-2.t
|
#ld: -T pr14962-2.t
|
||||||
#source: pr14962a.s
|
#source: pr14962a.s
|
||||||
#nm: -n
|
#nm: -n
|
||||||
#notarget: frv-*-*linux*
|
#xfail: frv-*-*linux*
|
||||||
|
|
||||||
#...
|
#...
|
||||||
0+2000 [AT] _start
|
0+2000 [AT] _start
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
#source: pr14962a.s
|
#source: pr14962a.s
|
||||||
#source: pr14962b.s
|
#source: pr14962b.s
|
||||||
#nm: -n
|
#nm: -n
|
||||||
#notarget: 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.
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
#objdump: -s
|
#objdump: -s
|
||||||
#notarget: *-*-osf* *-*-aix* *-*-pe *-*-*aout *-*-ecoff *-*-netbsd *-*-vms h8300-*-* tic30-*-*
|
#notarget: *-*-osf* *-*-aix* *-*-pe *-*-*aout *-*-ecoff *-*-netbsd *-*-vms h8300-*-* tic30-*-*
|
||||||
# This test uses arbitrary section names, which are not support by some
|
# This test uses arbitrary section names, which are not support by some
|
||||||
# file formts. Also these section names must be present in the
|
# file formats. Also these section names must be present in the
|
||||||
# output, not translated into some other name, eg .text
|
# output, not translated into some other name, eg .text
|
||||||
|
|
||||||
.*: file format .*
|
.*: file format .*
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#ld: --oformat binary -T pr21529.ld -e main
|
#ld: --oformat binary -T pr21529.ld -e main
|
||||||
#objdump: -s -b binary
|
#objdump: -s -b binary
|
||||||
#notarget: aarch64*-*-* arm*-*-* avr-*-* ia64-*-* m68hc1*-*-* nds32*-*-* riscv*-*-* score-*-* v850-*-*
|
#xfail: aarch64*-*-* arm*-*-* avr-*-* ia64-*-* m68hc1*-*-* nds32*-*-* riscv*-*-* score-*-* v850-*-*
|
||||||
# Skip targets which can't change output format to binary.
|
# Skip targets which can't change output format to binary.
|
||||||
|
|
||||||
#pass
|
#pass
|
||||||
|
|||||||
Reference in New Issue
Block a user