diff options
author | Alan Modra <amodra@gmail.com> | 2020-02-05 16:19:17 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2020-02-06 13:57:37 +1030 |
commit | 02e0be69012aee9aac0c7adbba1b0516b4dc9218 (patch) | |
tree | f254f35a15e747f8f6775349b2bf29ca7ce478aa /gas | |
parent | b88237bc21d0e847d5c8808bfd9a789ed213cfb2 (diff) | |
download | binutils-02e0be69012aee9aac0c7adbba1b0516b4dc9218.zip binutils-02e0be69012aee9aac0c7adbba1b0516b4dc9218.tar.gz binutils-02e0be69012aee9aac0c7adbba1b0516b4dc9218.tar.bz2 |
mbind gas tests and supports_gnu_osabi testsuite infrastructure
With the addition of section16 tests we have multiple tests
advertising themselves as "mbind sections" and "mbind section
contents". This patch fixes that, and fails on quite a few targets
that force an OSABI value. It's a pain specifying all the relevant
arm targets on an xfail line, so I wrote supports_gnu_osabi.
binutils/
* testsuite/lib/binutils-common.exp (match_target): Accept '!' before
TCL procedure.
(supports_gnu_osabi): New procedure.
(is_generic): New, from ld-lib.exp.
(supports_gnu_unique): Use the above.
gas/
* testsuite/gas/elf/section12a.d: Use supports_gnu_osabi in
xfail, and rename test.
* testsuite/gas/elf/section12b.d: Likewise.
* testsuite/gas/elf/section16a.d: Likewise.
* testsuite/gas/elf/section16b.d: Likewise.
ld/
* testsuite/lib/ld-lib.exp (is_generic): Delete.
* testsuite/ld-unique/unique.exp: Exclude tic6x.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/ChangeLog | 8 | ||||
-rw-r--r-- | gas/testsuite/gas/elf/section12a.d | 5 | ||||
-rw-r--r-- | gas/testsuite/gas/elf/section12b.d | 5 | ||||
-rw-r--r-- | gas/testsuite/gas/elf/section16a.d | 5 | ||||
-rw-r--r-- | gas/testsuite/gas/elf/section16b.d | 5 |
5 files changed, 16 insertions, 12 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index b8c8864..ef7a8ee 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,11 @@ +2020-02-06 Alan Modra <amodra@gmail.com> + + * testsuite/gas/elf/section12a.d: Use supports_gnu_osabi in + xfail, and rename test. + * testsuite/gas/elf/section12b.d: Likewise. + * testsuite/gas/elf/section16a.d: Likewise. + * testsuite/gas/elf/section16b.d: Likewise. + 2020-02-02 H.J. Lu <hongjiu.lu@intel.com> PR gas/25380 diff --git a/gas/testsuite/gas/elf/section12a.d b/gas/testsuite/gas/elf/section12a.d index 84c032f..1580161 100644 --- a/gas/testsuite/gas/elf/section12a.d +++ b/gas/testsuite/gas/elf/section12a.d @@ -1,10 +1,9 @@ #source: section12.s #as: --no-pad-sections #readelf: -Sg --wide -#name: mbind sections +#name: mbind sections 12 # A number of targets do not support SHF_GNU_MBIND -#xfail: arm*-*-netbsdelf* arm*-*-nto* msp430-*-* visium-*-* -#xfail: *-*-hpux* *-*-cloudabi +#xfail: ![supports_gnu_osabi] #... \[[ 0-9]+\] \.mbind\.data[ ]+PROGBITS[ ]+0+0 0+[0-9a-f]+ 0+1 00 WAD 0 0 1 diff --git a/gas/testsuite/gas/elf/section12b.d b/gas/testsuite/gas/elf/section12b.d index 847f9a8..98a4b95 100644 --- a/gas/testsuite/gas/elf/section12b.d +++ b/gas/testsuite/gas/elf/section12b.d @@ -1,13 +1,12 @@ #source: section12.s #as: --no-pad-sections #objdump: -s -#name: mbind section contents +#name: mbind section contents 16 # RX annoyingly reorders the sections so that they do not match the sequence # expected below. #xfail: rx-*-* # A number of targets do not support SHF_GNU_MBIND -#xfail: arm*-*-netbsdelf* arm*-*-nto* msp430-*-* visium-*-* -#xfail: *-*-hpux* *-*-cloudabi +#xfail: ![supports_gnu_osabi] #... Contents of section .mbind.data: diff --git a/gas/testsuite/gas/elf/section16a.d b/gas/testsuite/gas/elf/section16a.d index d1abf57..0d66475 100644 --- a/gas/testsuite/gas/elf/section16a.d +++ b/gas/testsuite/gas/elf/section16a.d @@ -1,10 +1,9 @@ #source: section16.s #as: --no-pad-sections #readelf: -Sg --wide -#name: mbind sections +#name: mbind sections 16 # A number of targets do not support SHF_GNU_MBIND -#xfail: arm*-*-netbsdelf* arm*-*-nto* msp430-*-* visium-*-* -#xfail: *-*-hpux* *-*-cloudabi +#xfail: ![supports_gnu_osabi] #... \[[ 0-9]+\] \.mbind\.data[ ]+PROGBITS[ ]+0+0 0+[0-9a-f]+ 0+1 00 WAD 0 0 1 diff --git a/gas/testsuite/gas/elf/section16b.d b/gas/testsuite/gas/elf/section16b.d index a146c0d..9014fab 100644 --- a/gas/testsuite/gas/elf/section16b.d +++ b/gas/testsuite/gas/elf/section16b.d @@ -1,13 +1,12 @@ #source: section16.s #as: --no-pad-sections #objdump: -s -#name: mbind section contents +#name: mbind section contents 16 # RX annoyingly reorders the sections so that they do not match the sequence # expected below. #xfail: rx-*-* # A number of targets do not support SHF_GNU_MBIND -#xfail: arm*-*-netbsdelf* arm*-*-nto* msp430-*-* visium-*-* -#xfail: *-*-hpux* *-*-cloudabi +#xfail: ![supports_gnu_osabi] #... Contents of section .mbind.data: |