diff options
author | Alan Modra <amodra@gmail.com> | 2020-03-25 13:07:54 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2020-03-25 14:51:41 +1030 |
commit | 86fd7e2e109813b3934cf7880b93d4bc8f779b8b (patch) | |
tree | 18e500327bc0c32ace90bc85da63d7ff17b696d2 /ld | |
parent | d16e3d2e5b717cf83c1fe47a70e0a9f2c2024a44 (diff) | |
download | fsf-binutils-gdb-86fd7e2e109813b3934cf7880b93d4bc8f779b8b.zip fsf-binutils-gdb-86fd7e2e109813b3934cf7880b93d4bc8f779b8b.tar.gz fsf-binutils-gdb-86fd7e2e109813b3934cf7880b93d4bc8f779b8b.tar.bz2 |
h8300-linux ld testsuite
This fixes lots of fails caused by h8300-linux not supporting -shared
and related options. I've also fixed ld-h8300 tests to accept the
valid h8300-linux -m options .
pr22450.d is also fixed for avr, crx, ip2k, m68hc11 and xc16x, and the
new pr25708 test for hppa64.
* testsuite/ld-elf/compress1c.d: xfail h8300.
* testsuite/ld-elf/compressed1c.d: Likewise.
* testsuite/ld-elf/compressed1e.d: Likewise.
* testsuite/ld-elf/dynamic1.d: Likewise.
* testsuite/ld-elf/dynsym1.d: Likewise.
* testsuite/ld-elf/ehdr_start-shared.d: Likewise.
* testsuite/ld-elf/exclude3b.d: Likewise.
* testsuite/ld-elf/export-class.exp: Don't run without -shared support.
* testsuite/ld-elf/global1.d: xfail h8300.
* testsuite/ld-elf/hash.d: Likewise.
* testsuite/ld-elf/loadaddr1.d: Likewise.
* testsuite/ld-elf/loadaddr2.d: Likewise.
* testsuite/ld-elf/local1.d: Likewise.
* testsuite/ld-elf/mbind1b.d: Likewise.
* testsuite/ld-elf/mbind1c.d: Likewise.
* testsuite/ld-elf/now-1.d: Likewise.
* testsuite/ld-elf/now-2.d: Likewise.
* testsuite/ld-elf/now-3.d: Likewise.
* testsuite/ld-elf/now-4.d: Likewise.
* testsuite/ld-elf/pie.d: Likewise.
* testsuite/ld-elf/pr12975.d: Likewise.
* testsuite/ld-elf/pr13177.d: Likewise.
* testsuite/ld-elf/pr13195.d: Likewise.
* testsuite/ld-elf/pr16322.d: Likewise.
* testsuite/ld-elf/pr16498a.d: Likewise.
* testsuite/ld-elf/pr16498b.d: Likewise.
* testsuite/ld-elf/pr17615.d: Likewise.
* testsuite/ld-elf/pr19162.d: Likewise.
* testsuite/ld-elf/pr19539.d: Likewise.
* testsuite/ld-elf/pr19617a.d: Likewise.
* testsuite/ld-elf/pr19698.d: Likewise.
* testsuite/ld-elf/pr20513c.d: Likewise.
* testsuite/ld-elf/pr20513d.d: Likewise.
* testsuite/ld-elf/pr21389a.d: Likewise.
* testsuite/ld-elf/pr21389b.d: Likewise.
* testsuite/ld-elf/pr21389c.d: Likewise.
* testsuite/ld-elf/pr21562a.d: Likewise.
* testsuite/ld-elf/pr21562b.d: Likewise.
* testsuite/ld-elf/pr21562c.d: Likewise.
* testsuite/ld-elf/pr21562d.d: Likewise.
* testsuite/ld-elf/pr21562e.d: Likewise.
* testsuite/ld-elf/pr21562f.d: Likewise.
* testsuite/ld-elf/pr21562g.d: Likewise.
* testsuite/ld-elf/pr21562h.d: Likewise.
* testsuite/ld-elf/pr21562i.d: Likewise.
* testsuite/ld-elf/pr21562j.d: Likewise.
* testsuite/ld-elf/pr21562k.d: Likewise.
* testsuite/ld-elf/pr21562l.d: Likewise.
* testsuite/ld-elf/pr21562m.d: Likewise.
* testsuite/ld-elf/pr21562n.d: Likewise.
* testsuite/ld-elf/pr21903a.d: Likewise.
* testsuite/ld-elf/pr21903b.d: Likewise.
* testsuite/ld-elf/pr21903d.d: Likewise.
* testsuite/ld-elf/pr22269a.d: Likewise.
* testsuite/ld-elf/pr22269b.d: Likewise.
* testsuite/ld-elf/pr22393-1a.d: Likewise.
* testsuite/ld-elf/pr22393-1b.d: Likewise.
* testsuite/ld-elf/pr22393-1c.d: Likewise.
* testsuite/ld-elf/pr22393-1d.d: Likewise.
* testsuite/ld-elf/pr22393-1e.d: Likewise.
* testsuite/ld-elf/pr22393-1f.d: Likewise.
* testsuite/ld-elf/pr22423.d: Likewise.
* testsuite/ld-elf/pr22450.d: xfail avr, crx, h8300, ip2k, m68hc11,
and xc16x.
* testsuite/ld-elf/pr23658-1c.d: xfail h8300.
* testsuite/ld-elf/pr25708.d: xfail h8300 and hppa64.
* testsuite/ld-elf/rpath-1.d: xfail h8300.
* testsuite/ld-elf/rpath-2.d: Likewise.
* testsuite/ld-elf/runpath-1.d: Likewise.
* testsuite/ld-elf/runpath-2.d: Likewise.
* testsuite/ld-elf/sizeofb.d: Likewise.
* testsuite/ld-elf/startofb.d: Likewise.
* testsuite/ld-elf/strtab.d: Likewise.
* testsuite/ld-elf/textaddr1.d: Likewise.
* testsuite/ld-elf/textaddr2.d: Likewise.
* testsuite/ld-elf/textaddr4.d: Likewise.
* testsuite/ld-elf/textaddr5.d: Likewise.
* testsuite/ld-elf/textaddr6.d: Likewise.
* testsuite/ld-elf/unknown2.d: Likewise.
* testsuite/ld-undefined/entry-3.d: Likewise.
* testsuite/ld-undefined/entry-4.d: Likewise.
* testsuite/ld-h8300/h8300.exp: Pass appropriate ld -m option.
* testsuite/ld-h8300/gcsection.d: Remove ld -m option and relax
file format match.
* testsuite/ld-h8300/relax-2.d: Likewise.
* testsuite/ld-h8300/relax-3.d: Likewise.
* testsuite/ld-h8300/relax-4.d: Likewise.
* testsuite/ld-h8300/relax-5.d: Likewise.
* testsuite/ld-h8300/relax-6.d: Likewise.
* testsuite/ld-h8300/relax-7.d: Likewise.
* testsuite/ld-h8300/relax.d: Relax file format match.
Diffstat (limited to 'ld')
90 files changed, 203 insertions, 42 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog index ac7dca4..1552d19 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,97 @@ +2020-03-25 Alan Modra <amodra@gmail.com> + + * testsuite/ld-elf/compress1c.d: xfail h8300. + * testsuite/ld-elf/compressed1c.d: Likewise. + * testsuite/ld-elf/compressed1e.d: Likewise. + * testsuite/ld-elf/dynamic1.d: Likewise. + * testsuite/ld-elf/dynsym1.d: Likewise. + * testsuite/ld-elf/ehdr_start-shared.d: Likewise. + * testsuite/ld-elf/exclude3b.d: Likewise. + * testsuite/ld-elf/export-class.exp: Don't run without -shared support. + * testsuite/ld-elf/global1.d: xfail h8300. + * testsuite/ld-elf/hash.d: Likewise. + * testsuite/ld-elf/loadaddr1.d: Likewise. + * testsuite/ld-elf/loadaddr2.d: Likewise. + * testsuite/ld-elf/local1.d: Likewise. + * testsuite/ld-elf/mbind1b.d: Likewise. + * testsuite/ld-elf/mbind1c.d: Likewise. + * testsuite/ld-elf/now-1.d: Likewise. + * testsuite/ld-elf/now-2.d: Likewise. + * testsuite/ld-elf/now-3.d: Likewise. + * testsuite/ld-elf/now-4.d: Likewise. + * testsuite/ld-elf/pie.d: Likewise. + * testsuite/ld-elf/pr12975.d: Likewise. + * testsuite/ld-elf/pr13177.d: Likewise. + * testsuite/ld-elf/pr13195.d: Likewise. + * testsuite/ld-elf/pr16322.d: Likewise. + * testsuite/ld-elf/pr16498a.d: Likewise. + * testsuite/ld-elf/pr16498b.d: Likewise. + * testsuite/ld-elf/pr17615.d: Likewise. + * testsuite/ld-elf/pr19162.d: Likewise. + * testsuite/ld-elf/pr19539.d: Likewise. + * testsuite/ld-elf/pr19617a.d: Likewise. + * testsuite/ld-elf/pr19698.d: Likewise. + * testsuite/ld-elf/pr20513c.d: Likewise. + * testsuite/ld-elf/pr20513d.d: Likewise. + * testsuite/ld-elf/pr21389a.d: Likewise. + * testsuite/ld-elf/pr21389b.d: Likewise. + * testsuite/ld-elf/pr21389c.d: Likewise. + * testsuite/ld-elf/pr21562a.d: Likewise. + * testsuite/ld-elf/pr21562b.d: Likewise. + * testsuite/ld-elf/pr21562c.d: Likewise. + * testsuite/ld-elf/pr21562d.d: Likewise. + * testsuite/ld-elf/pr21562e.d: Likewise. + * testsuite/ld-elf/pr21562f.d: Likewise. + * testsuite/ld-elf/pr21562g.d: Likewise. + * testsuite/ld-elf/pr21562h.d: Likewise. + * testsuite/ld-elf/pr21562i.d: Likewise. + * testsuite/ld-elf/pr21562j.d: Likewise. + * testsuite/ld-elf/pr21562k.d: Likewise. + * testsuite/ld-elf/pr21562l.d: Likewise. + * testsuite/ld-elf/pr21562m.d: Likewise. + * testsuite/ld-elf/pr21562n.d: Likewise. + * testsuite/ld-elf/pr21903a.d: Likewise. + * testsuite/ld-elf/pr21903b.d: Likewise. + * testsuite/ld-elf/pr21903d.d: Likewise. + * testsuite/ld-elf/pr22269a.d: Likewise. + * testsuite/ld-elf/pr22269b.d: Likewise. + * testsuite/ld-elf/pr22393-1a.d: Likewise. + * testsuite/ld-elf/pr22393-1b.d: Likewise. + * testsuite/ld-elf/pr22393-1c.d: Likewise. + * testsuite/ld-elf/pr22393-1d.d: Likewise. + * testsuite/ld-elf/pr22393-1e.d: Likewise. + * testsuite/ld-elf/pr22393-1f.d: Likewise. + * testsuite/ld-elf/pr22423.d: Likewise. + * testsuite/ld-elf/pr22450.d: xfail avr, crx, h8300, ip2k, m68hc11, + and xc16x. + * testsuite/ld-elf/pr23658-1c.d: xfail h8300. + * testsuite/ld-elf/pr25708.d: xfail h8300 and hppa64. + * testsuite/ld-elf/rpath-1.d: xfail h8300. + * testsuite/ld-elf/rpath-2.d: Likewise. + * testsuite/ld-elf/runpath-1.d: Likewise. + * testsuite/ld-elf/runpath-2.d: Likewise. + * testsuite/ld-elf/sizeofb.d: Likewise. + * testsuite/ld-elf/startofb.d: Likewise. + * testsuite/ld-elf/strtab.d: Likewise. + * testsuite/ld-elf/textaddr1.d: Likewise. + * testsuite/ld-elf/textaddr2.d: Likewise. + * testsuite/ld-elf/textaddr4.d: Likewise. + * testsuite/ld-elf/textaddr5.d: Likewise. + * testsuite/ld-elf/textaddr6.d: Likewise. + * testsuite/ld-elf/unknown2.d: Likewise. + * testsuite/ld-undefined/entry-3.d: Likewise. + * testsuite/ld-undefined/entry-4.d: Likewise. + * testsuite/ld-h8300/h8300.exp: Pass appropriate ld -m option. + * testsuite/ld-h8300/gcsection.d: Remove ld -m option and relax + file format match. + * testsuite/ld-h8300/relax-2.d: Likewise. + * testsuite/ld-h8300/relax-3.d: Likewise. + * testsuite/ld-h8300/relax-4.d: Likewise. + * testsuite/ld-h8300/relax-5.d: Likewise. + * testsuite/ld-h8300/relax-6.d: Likewise. + * testsuite/ld-h8300/relax-7.d: Likewise. + * testsuite/ld-h8300/relax.d: Relax file format match. + 2020-03-24 H.J. Lu <hongjiu.lu@intel.com> PR binutils/25708 diff --git a/ld/testsuite/ld-elf/compress1c.d b/ld/testsuite/ld-elf/compress1c.d index 73f716e..d95f4ff 100644 --- a/ld/testsuite/ld-elf/compress1c.d +++ b/ld/testsuite/ld-elf/compress1c.d @@ -3,6 +3,7 @@ #ld: -shared #readelf: -S --wide #target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi +#xfail: h8300-*-* #failif #... diff --git a/ld/testsuite/ld-elf/compressed1c.d b/ld/testsuite/ld-elf/compressed1c.d index 7fc57ef..e056429 100644 --- a/ld/testsuite/ld-elf/compressed1c.d +++ b/ld/testsuite/ld-elf/compressed1c.d @@ -3,6 +3,7 @@ #ld: -shared --compress-debug-sections=none #readelf: -t #target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi +#xfail: h8300-*-* #failif #... diff --git a/ld/testsuite/ld-elf/compressed1e.d b/ld/testsuite/ld-elf/compressed1e.d index 9b54618..db93f70 100644 --- a/ld/testsuite/ld-elf/compressed1e.d +++ b/ld/testsuite/ld-elf/compressed1e.d @@ -3,7 +3,7 @@ #ld: -shared --compress-debug-sections=zlib-gnu #readelf: -SW #target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi -#xfail: cris*-*-elf frv-*-elf +#xfail: h8300-*-* #failif #... diff --git a/ld/testsuite/ld-elf/dynamic1.d b/ld/testsuite/ld-elf/dynamic1.d index a4bbe3c..95717f6 100644 --- a/ld/testsuite/ld-elf/dynamic1.d +++ b/ld/testsuite/ld-elf/dynamic1.d @@ -1,6 +1,7 @@ #ld: -shared -T dynamic1.ld #readelf: -l --wide #target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi +#xfail: h8300-*-* #... Section to Segment mapping: diff --git a/ld/testsuite/ld-elf/dynsym1.d b/ld/testsuite/ld-elf/dynsym1.d index 273ce3d..6e534fc 100644 --- a/ld/testsuite/ld-elf/dynsym1.d +++ b/ld/testsuite/ld-elf/dynsym1.d @@ -2,6 +2,7 @@ #ld: -shared #readelf: --dyn-syms #target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi +#xfail: h8300-*-* #... +[0-9]+: +[0-9a-f]+ +[0-9]+ +FUNC +GLOBAL +DEFAULT +[1-9] _start diff --git a/ld/testsuite/ld-elf/ehdr_start-shared.d b/ld/testsuite/ld-elf/ehdr_start-shared.d index 55f9a58..2baf159 100644 --- a/ld/testsuite/ld-elf/ehdr_start-shared.d +++ b/ld/testsuite/ld-elf/ehdr_start-shared.d @@ -2,7 +2,7 @@ #ld: -e _start -shared #nm: -n #target: *-*-linux* *-*-gnu* *-*-nacl* arm*-*-uclinuxfdpiceabi -#xfail: cris*-*-* frv-*-* +#xfail: cris*-*-* frv-*-* h8300-*-* #... [0-9a-f]*000 [Adrt] __ehdr_start diff --git a/ld/testsuite/ld-elf/exclude3b.d b/ld/testsuite/ld-elf/exclude3b.d index ac8407d..cee6c1d 100644 --- a/ld/testsuite/ld-elf/exclude3b.d +++ b/ld/testsuite/ld-elf/exclude3b.d @@ -2,6 +2,7 @@ #ld: --shared #readelf: -S --wide #target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi +#xfail: h8300-*-* #failif #... diff --git a/ld/testsuite/ld-elf/export-class.exp b/ld/testsuite/ld-elf/export-class.exp index daaf004..01a0085 100644 --- a/ld/testsuite/ld-elf/export-class.exp +++ b/ld/testsuite/ld-elf/export-class.exp @@ -25,7 +25,7 @@ # # Exclude non-ELF targets. -if { ![is_elf_format] } { +if { ![is_elf_format] || ![check_shared_lib_support] } { return } diff --git a/ld/testsuite/ld-elf/global1.d b/ld/testsuite/ld-elf/global1.d index 726525b..71e9561 100644 --- a/ld/testsuite/ld-elf/global1.d +++ b/ld/testsuite/ld-elf/global1.d @@ -2,6 +2,7 @@ #ld: -shared -z global #readelf: -d #target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi +#xfail: h8300-*-* #... 0x0*6ffffffb \(FLAGS_1\) *Flags: GLOBAL diff --git a/ld/testsuite/ld-elf/hash.d b/ld/testsuite/ld-elf/hash.d index efe675e..d21c1c9 100644 --- a/ld/testsuite/ld-elf/hash.d +++ b/ld/testsuite/ld-elf/hash.d @@ -2,6 +2,7 @@ #readelf: -d -s -D #ld: -shared --hash-style=gnu #target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi +#xfail: h8300-*-* #xfail: mips*-*-* # MIPS uses a different style of GNU hash due to psABI restrictions # on dynsym table ordering. diff --git a/ld/testsuite/ld-elf/loadaddr1.d b/ld/testsuite/ld-elf/loadaddr1.d index 0e38b64..e118163 100644 --- a/ld/testsuite/ld-elf/loadaddr1.d +++ b/ld/testsuite/ld-elf/loadaddr1.d @@ -2,6 +2,7 @@ #ld: -T loadaddr1.t -T loadaddr.t -z max-page-size=0x200000 -z noseparate-code #readelf: -l --wide #target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi +#xfail: h8300-*-* #... LOAD +0x000000 0xf*80000000 0xf*80000000 0x100050 0x100050 RWE 0x200000 diff --git a/ld/testsuite/ld-elf/loadaddr2.d b/ld/testsuite/ld-elf/loadaddr2.d index 5fbfa54..eb1517e 100644 --- a/ld/testsuite/ld-elf/loadaddr2.d +++ b/ld/testsuite/ld-elf/loadaddr2.d @@ -2,6 +2,7 @@ #ld: -T loadaddr2.t -T loadaddr.t -z max-page-size=0x200000 -z noseparate-code #readelf: -l --wide #target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi +#xfail: h8300-*-* #... LOAD +0x000000 0xf*80000000 0xf*80000000 0x100050 0x100050 RWE 0x200000 diff --git a/ld/testsuite/ld-elf/local1.d b/ld/testsuite/ld-elf/local1.d index be3d24a..c5b7876 100644 --- a/ld/testsuite/ld-elf/local1.d +++ b/ld/testsuite/ld-elf/local1.d @@ -1,6 +1,7 @@ #ld: -shared --version-script local1.map #readelf: -s --wide #target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi +#xfail: h8300-*-* #... .*: [0-9a-f]* +[0-9a-f]+ +OBJECT +LOCAL +DEFAULT +[0-9] +foo diff --git a/ld/testsuite/ld-elf/mbind1b.d b/ld/testsuite/ld-elf/mbind1b.d index 49316a1..9c36b26 100644 --- a/ld/testsuite/ld-elf/mbind1b.d +++ b/ld/testsuite/ld-elf/mbind1b.d @@ -2,6 +2,7 @@ #ld: -shared -z common-page-size=0x1000 -z max-page-size=0x200000 #readelf: -S -l --wide #target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi +#xfail: h8300-*-* #... \[[ 0-9]+\] \.mbind\.text[ ]+PROGBITS[ ]+[0-9a-f]+ [0-9a-f]+ [0-9a-f]+ 00 AXD 0 0 4096 diff --git a/ld/testsuite/ld-elf/mbind1c.d b/ld/testsuite/ld-elf/mbind1c.d index 40cc852..1c794c1 100644 --- a/ld/testsuite/ld-elf/mbind1c.d +++ b/ld/testsuite/ld-elf/mbind1c.d @@ -2,6 +2,7 @@ #ld: -pie -z common-page-size=0x1000 -z max-page-size=0x200000 #readelf: -S -l --wide #target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi +#xfail: h8300-*-* #... \[[ 0-9]+\] \.mbind\.text[ ]+PROGBITS[ ]+[0-9a-f]+ [0-9a-f]+ [0-9a-f]+ 00 AXD 0 0 4096 diff --git a/ld/testsuite/ld-elf/now-1.d b/ld/testsuite/ld-elf/now-1.d index bc3ccf8..41c4738 100644 --- a/ld/testsuite/ld-elf/now-1.d +++ b/ld/testsuite/ld-elf/now-1.d @@ -2,6 +2,7 @@ #readelf: -d -W #ld: -shared -z now --enable-new-dtags #target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi +#xfail: h8300-*-* #failif #... diff --git a/ld/testsuite/ld-elf/now-2.d b/ld/testsuite/ld-elf/now-2.d index 0e33797..6c50dc0 100644 --- a/ld/testsuite/ld-elf/now-2.d +++ b/ld/testsuite/ld-elf/now-2.d @@ -2,6 +2,7 @@ #readelf: -d -W #ld: -shared -z now --enable-new-dtags #target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi +#xfail: h8300-*-* #... 0x[0-9a-f]+ +\(FLAGS\) +BIND_NOW diff --git a/ld/testsuite/ld-elf/now-3.d b/ld/testsuite/ld-elf/now-3.d index b8ff534..34e0fad 100644 --- a/ld/testsuite/ld-elf/now-3.d +++ b/ld/testsuite/ld-elf/now-3.d @@ -2,6 +2,7 @@ #readelf: -d -W #ld: -shared -z now --disable-new-dtags #target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi +#xfail: h8300-*-* #failif #... diff --git a/ld/testsuite/ld-elf/now-4.d b/ld/testsuite/ld-elf/now-4.d index f4e9259..e3058ed 100644 --- a/ld/testsuite/ld-elf/now-4.d +++ b/ld/testsuite/ld-elf/now-4.d @@ -2,6 +2,7 @@ #readelf: -d -W #ld: -shared -z now --disable-new-dtags #target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi +#xfail: h8300-*-* #... 0x[0-9a-f]+ +\(BIND_NOW\) + diff --git a/ld/testsuite/ld-elf/pie.d b/ld/testsuite/ld-elf/pie.d index aa7b855..94511dd 100644 --- a/ld/testsuite/ld-elf/pie.d +++ b/ld/testsuite/ld-elf/pie.d @@ -2,6 +2,7 @@ #readelf: -d -W #ld: -pie #target: *-*-linux* *-*-gnu* *-*-solaris* arm*-*-uclinuxfdpiceabi +#xfail: h8300-*-* #... +0x[0-9a-f]+ +\(FLAGS_1\) +Flags: +PIE diff --git a/ld/testsuite/ld-elf/pr12975.d b/ld/testsuite/ld-elf/pr12975.d index 054df31..bd33db2 100644 --- a/ld/testsuite/ld-elf/pr12975.d +++ b/ld/testsuite/ld-elf/pr12975.d @@ -1,7 +1,7 @@ #ld: --gc-sections -shared -version-script pr12975.t #readelf: -s --wide #target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi -#xfail: [is_generic] hppa64-*-* mep-*-* mn10200-*-* +#xfail: [is_generic] h8300-*-* hppa64-*-* mep-*-* mn10200-*-* # generic linker targets don't support --gc-sections, nor do a bunch of others #failif diff --git a/ld/testsuite/ld-elf/pr13177.d b/ld/testsuite/ld-elf/pr13177.d index bc23650..30b9ce6 100644 --- a/ld/testsuite/ld-elf/pr13177.d +++ b/ld/testsuite/ld-elf/pr13177.d @@ -2,7 +2,7 @@ #ld: --gc-sections -shared #readelf: -s -D --wide #target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi -#xfail: [is_generic] hppa64-*-* mep-*-* mn10200-*-* +#xfail: [is_generic] h8300-*-* hppa64-*-* mep-*-* mn10200-*-* # generic linker targets don't support --gc-sections, nor do a bunch of others #failif diff --git a/ld/testsuite/ld-elf/pr13195.d b/ld/testsuite/ld-elf/pr13195.d index 8a0f9bd..4e58929 100644 --- a/ld/testsuite/ld-elf/pr13195.d +++ b/ld/testsuite/ld-elf/pr13195.d @@ -1,7 +1,7 @@ #ld: --gc-sections -shared -version-script pr13195.t #readelf: -s --wide -D #target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi -#xfail: [is_generic] hppa64-*-* mep-*-* mn10200-*-* +#xfail: [is_generic] h8300-*-* hppa64-*-* mep-*-* mn10200-*-* # generic linker targets don't support --gc-sections, nor do a bunch of others #... diff --git a/ld/testsuite/ld-elf/pr16322.d b/ld/testsuite/ld-elf/pr16322.d index d0e349d..6e7c22a 100644 --- a/ld/testsuite/ld-elf/pr16322.d +++ b/ld/testsuite/ld-elf/pr16322.d @@ -1,6 +1,7 @@ #ld: -shared -z relro -z noseparate-code #readelf: -l --wide #target: *-*-linux-gnu *-*-gnu* *-*-nacl* arm*-*-uclinuxfdpiceabi +#xfail: h8300-*-* #... GNU_RELRO .* diff --git a/ld/testsuite/ld-elf/pr16498a.d b/ld/testsuite/ld-elf/pr16498a.d index 7726d3b..3d6554e 100644 --- a/ld/testsuite/ld-elf/pr16498a.d +++ b/ld/testsuite/ld-elf/pr16498a.d @@ -1,6 +1,7 @@ #ld: -shared -T pr16498a.t #readelf: -l --wide #target: *-*-linux* *-*-gnu* *-*-nacl* arm*-*-uclinuxfdpiceabi +#xfail: h8300-*-* #... TLS .* diff --git a/ld/testsuite/ld-elf/pr16498b.d b/ld/testsuite/ld-elf/pr16498b.d index e599d90..dcddbfd 100644 --- a/ld/testsuite/ld-elf/pr16498b.d +++ b/ld/testsuite/ld-elf/pr16498b.d @@ -2,6 +2,7 @@ #ld: -shared -T pr16498b.t #readelf: -l --wide #target: *-*-linux* *-*-gnu* *-*-nacl* arm*-*-uclinuxfdpiceabi +#xfail: h8300-*-* #... TLS .* diff --git a/ld/testsuite/ld-elf/pr17615.d b/ld/testsuite/ld-elf/pr17615.d index 6ab0d0e..a5af4d3 100644 --- a/ld/testsuite/ld-elf/pr17615.d +++ b/ld/testsuite/ld-elf/pr17615.d @@ -1,7 +1,7 @@ #ld: --gc-sections -shared #readelf: -S --wide --dyn-syms #target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi -#xfail: [is_generic] hppa64-*-* mep-*-* mn10200-*-* +#xfail: [is_generic] h8300-*-* hppa64-*-* mep-*-* mn10200-*-* # generic linker targets don't support --gc-sections, nor do a bunch of others #... diff --git a/ld/testsuite/ld-elf/pr19162.d b/ld/testsuite/ld-elf/pr19162.d index 218da40..aa0a69c 100644 --- a/ld/testsuite/ld-elf/pr19162.d +++ b/ld/testsuite/ld-elf/pr19162.d @@ -3,7 +3,7 @@ #ld: -shared -z max-page-size=0x200000 -z noseparate-code #readelf: -l --wide #target: *-*-linux* *-*-gnu* *-*-nacl* arm*-*-uclinuxfdpiceabi -#xfail: hppa*-*-* +#xfail: h8300-*-* hppa*-*-* # hppa fails due to PR 12376. #... diff --git a/ld/testsuite/ld-elf/pr19539.d b/ld/testsuite/ld-elf/pr19539.d index 04e6791..24a9b17 100644 --- a/ld/testsuite/ld-elf/pr19539.d +++ b/ld/testsuite/ld-elf/pr19539.d @@ -3,7 +3,7 @@ #ld: -pie -T pr19539.t #readelf : --dyn-syms --wide #target: *-*-linux* *-*-gnu* *-*-solaris* arm*-*-uclinuxfdpiceabi -#xfail: cris*-*-* +#xfail: cris*-*-* h8300-*-* Symbol table '\.dynsym' contains [0-9]+ entr(y|ies): #pass diff --git a/ld/testsuite/ld-elf/pr19617a.d b/ld/testsuite/ld-elf/pr19617a.d index c315f3d..969bdc4 100644 --- a/ld/testsuite/ld-elf/pr19617a.d +++ b/ld/testsuite/ld-elf/pr19617a.d @@ -2,6 +2,7 @@ #ld: -E --no-dynamic-linker --hash-style=sysv #readelf : --dyn-syms --wide #target: *-*-linux* *-*-gnu* *-*-solaris* arm*-*-uclinuxfdpiceabi +#xfail: h8300-*-* Symbol table '\.dynsym' contains [0-9]+ entries: +Num: +Value +Size Type +Bind +Vis +Ndx Name diff --git a/ld/testsuite/ld-elf/pr19698.d b/ld/testsuite/ld-elf/pr19698.d index a82677c..f7b8aae 100644 --- a/ld/testsuite/ld-elf/pr19698.d +++ b/ld/testsuite/ld-elf/pr19698.d @@ -1,6 +1,7 @@ #ld: -shared $srcdir/$subdir/pr19698.t #readelf : --dyn-syms --wide #target: *-*-linux* *-*-gnu* *-*-solaris* arm*-*-uclinuxfdpiceabi +#xfail: h8300-*-* Symbol table '\.dynsym' contains [0-9]+ entries: #... diff --git a/ld/testsuite/ld-elf/pr20513c.d b/ld/testsuite/ld-elf/pr20513c.d index af81161..e7c2dde 100644 --- a/ld/testsuite/ld-elf/pr20513c.d +++ b/ld/testsuite/ld-elf/pr20513c.d @@ -3,6 +3,7 @@ #ld: -shared #readelf: -S --wide #target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi +#xfail: h8300-*-* #failif #... diff --git a/ld/testsuite/ld-elf/pr20513d.d b/ld/testsuite/ld-elf/pr20513d.d index f1a455c..c3797a8 100644 --- a/ld/testsuite/ld-elf/pr20513d.d +++ b/ld/testsuite/ld-elf/pr20513d.d @@ -3,6 +3,7 @@ #ld: -shared #readelf: -S --wide #target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi +#xfail: h8300-*-* #failif #... diff --git a/ld/testsuite/ld-elf/pr21389a.d b/ld/testsuite/ld-elf/pr21389a.d index da50d8a..ff86c76 100644 --- a/ld/testsuite/ld-elf/pr21389a.d +++ b/ld/testsuite/ld-elf/pr21389a.d @@ -2,6 +2,7 @@ #ld: -shared --version-script pr21389.map -soname=pr21389.so #objdump: -p #target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi +#xfail: h8300-*-* #... Version definitions: diff --git a/ld/testsuite/ld-elf/pr21389b.d b/ld/testsuite/ld-elf/pr21389b.d index fe39e9c..8f2049f 100644 --- a/ld/testsuite/ld-elf/pr21389b.d +++ b/ld/testsuite/ld-elf/pr21389b.d @@ -2,6 +2,7 @@ #ld: -shared --version-script pr21389.map -soname=pr21389.so #readelf: -d #target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi +#xfail: h8300-*-* #... 0x[0-9a-f]* \(SONAME\) +Library soname: \[pr21389.so\] diff --git a/ld/testsuite/ld-elf/pr21389c.d b/ld/testsuite/ld-elf/pr21389c.d index 31759f1..7db0417 100644 --- a/ld/testsuite/ld-elf/pr21389c.d +++ b/ld/testsuite/ld-elf/pr21389c.d @@ -2,6 +2,7 @@ #ld: -shared -soname=pr21389.so #readelf: -d #target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi +#xfail: h8300-*-* #... 0x[0-9a-f]* \(SONAME\) +Library soname: \[pr21389.so\] diff --git a/ld/testsuite/ld-elf/pr21562a.d b/ld/testsuite/ld-elf/pr21562a.d index c36dd3c..159292e 100644 --- a/ld/testsuite/ld-elf/pr21562a.d +++ b/ld/testsuite/ld-elf/pr21562a.d @@ -1,7 +1,7 @@ #ld: -shared -z defs --gc-sections #readelf: -s -S --wide #target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi -#xfail: [is_generic] hppa64-*-* mep-*-* mn10200-*-* +#xfail: [is_generic] h8300-*-* hppa64-*-* mep-*-* mn10200-*-* # generic linker targets don't support --gc-sections, nor do a bunch of others #... diff --git a/ld/testsuite/ld-elf/pr21562b.d b/ld/testsuite/ld-elf/pr21562b.d index a751f2e..5e891b8 100644 --- a/ld/testsuite/ld-elf/pr21562b.d +++ b/ld/testsuite/ld-elf/pr21562b.d @@ -1,7 +1,7 @@ #ld: -shared -z defs --gc-sections #readelf: -s -S --wide #target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi -#xfail: [is_generic] hppa64-*-* mep-*-* mn10200-*-* +#xfail: [is_generic] h8300-*-* hppa64-*-* mep-*-* mn10200-*-* # generic linker targets don't support --gc-sections, nor do a bunch of others #... diff --git a/ld/testsuite/ld-elf/pr21562c.d b/ld/testsuite/ld-elf/pr21562c.d index 4dc4b7f..758be5c 100644 --- a/ld/testsuite/ld-elf/pr21562c.d +++ b/ld/testsuite/ld-elf/pr21562c.d @@ -2,7 +2,7 @@ #ld: -shared -z defs --gc-sections -T pr21562a.t #readelf: -s -S --wide #target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi -#xfail: [is_generic] hppa64-*-* mep-*-* mn10200-*-* +#xfail: [is_generic] h8300-*-* hppa64-*-* mep-*-* mn10200-*-* # generic linker targets don't support --gc-sections, nor do a bunch of others #... diff --git a/ld/testsuite/ld-elf/pr21562d.d b/ld/testsuite/ld-elf/pr21562d.d index 5323b49..d5a6955 100644 --- a/ld/testsuite/ld-elf/pr21562d.d +++ b/ld/testsuite/ld-elf/pr21562d.d @@ -2,7 +2,7 @@ #ld: -shared -z defs --gc-sections -T pr21562a.t #readelf: -s -S --wide #target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi -#xfail: [is_generic] hppa64-*-* mep-*-* mn10200-*-* +#xfail: [is_generic] h8300-*-* hppa64-*-* mep-*-* mn10200-*-* # generic linker targets don't support --gc-sections, nor do a bunch of others #... diff --git a/ld/testsuite/ld-elf/pr21562e.d b/ld/testsuite/ld-elf/pr21562e.d index efe1c5a..a68960a 100644 --- a/ld/testsuite/ld-elf/pr21562e.d +++ b/ld/testsuite/ld-elf/pr21562e.d @@ -2,6 +2,7 @@ #ld: -shared -z defs #readelf: -s -S --wide #target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi +#xfail: h8300-*-* #... \[[ 0-9]+\] scnfoo[ \t]+PROGBITS[ \t]+[0-9a-f]+ +[0-9a-f]+ +0*10[ \t]+.* diff --git a/ld/testsuite/ld-elf/pr21562f.d b/ld/testsuite/ld-elf/pr21562f.d index 077c84e..b3f34ca 100644 --- a/ld/testsuite/ld-elf/pr21562f.d +++ b/ld/testsuite/ld-elf/pr21562f.d @@ -2,6 +2,7 @@ #ld: -shared -z defs #readelf: -s -S --wide #target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi +#xfail: h8300-*-* #... \[[ 0-9]+\] scnfoo[ \t]+PROGBITS[ \t]+[0-9a-f]+ +[0-9a-f]+ +0*10[ \t]+.* diff --git a/ld/testsuite/ld-elf/pr21562g.d b/ld/testsuite/ld-elf/pr21562g.d index 4f2c800..4bee6f6 100644 --- a/ld/testsuite/ld-elf/pr21562g.d +++ b/ld/testsuite/ld-elf/pr21562g.d @@ -2,6 +2,7 @@ #ld: -shared -z defs -T pr21562a.t #readelf: -s -S --wide #target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi +#xfail: h8300-*-* #... \[[ 0-9]+\] scnfoo[ \t]+PROGBITS[ \t]+[0-9a-f]+ +[0-9a-f]+ +0*10[ \t]+.* diff --git a/ld/testsuite/ld-elf/pr21562h.d b/ld/testsuite/ld-elf/pr21562h.d index d500013..a93fe40 100644 --- a/ld/testsuite/ld-elf/pr21562h.d +++ b/ld/testsuite/ld-elf/pr21562h.d @@ -2,6 +2,7 @@ #ld: -shared -z defs -T pr21562a.t #readelf: -s -S --wide #target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi +#xfail: h8300-*-* #... \[[ 0-9]+\] scnfoo[ \t]+PROGBITS[ \t]+[0-9a-f]+ +[0-9a-f]+ +0*10[ \t]+.* diff --git a/ld/testsuite/ld-elf/pr21562i.d b/ld/testsuite/ld-elf/pr21562i.d index ccdebed..2c9d9dd 100644 --- a/ld/testsuite/ld-elf/pr21562i.d +++ b/ld/testsuite/ld-elf/pr21562i.d @@ -2,7 +2,7 @@ #ld: -shared -z defs --gc-sections -T pr21562b.t #readelf: -s -S --wide #target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi -#xfail: [is_generic] hppa64-*-* mep-*-* mn10200-*-* +#xfail: [is_generic] h8300-*-* hppa64-*-* mep-*-* mn10200-*-* # generic linker targets don't support --gc-sections, nor do a bunch of others #... diff --git a/ld/testsuite/ld-elf/pr21562j.d b/ld/testsuite/ld-elf/pr21562j.d index 97eee51..28b45a8 100644 --- a/ld/testsuite/ld-elf/pr21562j.d +++ b/ld/testsuite/ld-elf/pr21562j.d @@ -2,7 +2,7 @@ #ld: -shared -z defs --gc-sections -T pr21562b.t #readelf: -s -S --wide #target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi -#xfail: [is_generic] hppa64-*-* mep-*-* mn10200-*-* +#xfail: [is_generic] h8300-*-* hppa64-*-* mep-*-* mn10200-*-* # generic linker targets don't support --gc-sections, nor do a bunch of others #... diff --git a/ld/testsuite/ld-elf/pr21562k.d b/ld/testsuite/ld-elf/pr21562k.d index 21d7897..24c29d9 100644 --- a/ld/testsuite/ld-elf/pr21562k.d +++ b/ld/testsuite/ld-elf/pr21562k.d @@ -2,7 +2,7 @@ #ld: -shared -z defs --gc-sections -T pr21562c.t #readelf: -s -S --wide #target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi -#xfail: [is_generic] hppa64-*-* mep-*-* mn10200-*-* +#xfail: [is_generic] h8300-*-* hppa64-*-* mep-*-* mn10200-*-* # generic linker targets don't support --gc-sections, nor do a bunch of others #... diff --git a/ld/testsuite/ld-elf/pr21562l.d b/ld/testsuite/ld-elf/pr21562l.d index 2233c66..2dd0d98 100644 --- a/ld/testsuite/ld-elf/pr21562l.d +++ b/ld/testsuite/ld-elf/pr21562l.d @@ -2,7 +2,7 @@ #ld: -shared -z defs --gc-sections -T pr21562c.t #readelf: -s -S --wide #target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi -#xfail: [is_generic] hppa64-*-* mep-*-* mn10200-*-* +#xfail: [is_generic] h8300-*-* hppa64-*-* mep-*-* mn10200-*-* # generic linker targets don't support --gc-sections, nor do a bunch of others #... diff --git a/ld/testsuite/ld-elf/pr21562m.d b/ld/testsuite/ld-elf/pr21562m.d index 62d2949..2bc714f 100644 --- a/ld/testsuite/ld-elf/pr21562m.d +++ b/ld/testsuite/ld-elf/pr21562m.d @@ -2,7 +2,7 @@ #ld: -shared -z defs --gc-sections -T pr21562d.t #readelf: -s -S --wide #target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi -#xfail: [is_generic] hppa64-*-* mep-*-* mn10200-*-* +#xfail: [is_generic] h8300-*-* hppa64-*-* mep-*-* mn10200-*-* # generic linker targets don't support --gc-sections, nor do a bunch of others #... diff --git a/ld/testsuite/ld-elf/pr21562n.d b/ld/testsuite/ld-elf/pr21562n.d index 5b4a326..8b210bb 100644 --- a/ld/testsuite/ld-elf/pr21562n.d +++ b/ld/testsuite/ld-elf/pr21562n.d @@ -2,7 +2,7 @@ #ld: -shared -z defs --gc-sections -T pr21562d.t #readelf: -s -S --wide #target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi -#xfail: [is_generic] hppa64-*-* mep-*-* mn10200-*-* +#xfail: [is_generic] h8300-*-* hppa64-*-* mep-*-* mn10200-*-* # generic linker targets don't support --gc-sections, nor do a bunch of others #... diff --git a/ld/testsuite/ld-elf/pr21903a.d b/ld/testsuite/ld-elf/pr21903a.d index a688df5..12e53f1 100644 --- a/ld/testsuite/ld-elf/pr21903a.d +++ b/ld/testsuite/ld-elf/pr21903a.d @@ -2,6 +2,7 @@ #ld: -shared --no-define-common #readelf: --dyn-syms #target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi +#xfail: h8300-*-* #... .*: 0+0 +0 +OBJECT +GLOBAL +DEFAULT +UND foo diff --git a/ld/testsuite/ld-elf/pr21903b.d b/ld/testsuite/ld-elf/pr21903b.d index 52893c3..6ad77ea 100644 --- a/ld/testsuite/ld-elf/pr21903b.d +++ b/ld/testsuite/ld-elf/pr21903b.d @@ -2,6 +2,7 @@ #ld: -shared #readelf: --dyn-syms #target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi +#xfail: h8300-*-* #... .*: [0-9a-f]+ +4 +OBJECT +GLOBAL +DEFAULT +[0-9]+ foo diff --git a/ld/testsuite/ld-elf/pr21903d.d b/ld/testsuite/ld-elf/pr21903d.d index 2e3088e..ac77d3e 100644 --- a/ld/testsuite/ld-elf/pr21903d.d +++ b/ld/testsuite/ld-elf/pr21903d.d @@ -1,4 +1,5 @@ #source: pr21903.s #ld: --no-define-common -pie #target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi +#xfail: h8300-*-* #error: --no-define-common may not be used without -shared diff --git a/ld/testsuite/ld-elf/pr22269a.d b/ld/testsuite/ld-elf/pr22269a.d index 2b3c94c..47775d3 100644 --- a/ld/testsuite/ld-elf/pr22269a.d +++ b/ld/testsuite/ld-elf/pr22269a.d @@ -3,6 +3,7 @@ #ld: -pie --no-dynamic-linker #readelf: -r -x .data.rel.ro #target: *-*-linux* *-*-gnu* *-*-nacl* arm*-*-uclinuxfdpiceabi +#xfail: h8300-*-* There are no relocations in this file. diff --git a/ld/testsuite/ld-elf/pr22269b.d b/ld/testsuite/ld-elf/pr22269b.d index bbfadc9..9e61a12 100644 --- a/ld/testsuite/ld-elf/pr22269b.d +++ b/ld/testsuite/ld-elf/pr22269b.d @@ -4,6 +4,7 @@ #readelf: -r -x .data.rel.ro #warning: -z dynamic-undefined-weak ignored #target: *-*-linux* *-*-gnu* *-*-nacl* arm*-*-uclinuxfdpiceabi +#xfail: h8300-*-* There are no relocations in this file. diff --git a/ld/testsuite/ld-elf/pr22393-1a.d b/ld/testsuite/ld-elf/pr22393-1a.d index 57f254b..c4fd3ba 100644 --- a/ld/testsuite/ld-elf/pr22393-1a.d +++ b/ld/testsuite/ld-elf/pr22393-1a.d @@ -2,6 +2,7 @@ #ld: -shared -z separate-code -z relro #readelf: -l --wide #target: *-*-linux-gnu *-*-gnu* *-*-nacl* arm*-*-uclinuxfdpiceabi +#xfail: h8300-*-* #failif #... diff --git a/ld/testsuite/ld-elf/pr22393-1b.d b/ld/testsuite/ld-elf/pr22393-1b.d index c7e5871..41cc8a0 100644 --- a/ld/testsuite/ld-elf/pr22393-1b.d +++ b/ld/testsuite/ld-elf/pr22393-1b.d @@ -2,6 +2,7 @@ #ld: -shared -z relro -z separate-code #readelf: -l --wide #target: *-*-linux-gnu *-*-gnu* *-*-nacl* arm*-*-uclinuxfdpiceabi +#xfail: h8300-*-* #failif #... diff --git a/ld/testsuite/ld-elf/pr22393-1c.d b/ld/testsuite/ld-elf/pr22393-1c.d index aea5890..664e20e 100644 --- a/ld/testsuite/ld-elf/pr22393-1c.d +++ b/ld/testsuite/ld-elf/pr22393-1c.d @@ -2,6 +2,7 @@ #ld: -pie -z separate-code #readelf: -l --wide #target: *-*-linux-gnu *-*-gnu* *-*-nacl* arm*-*-uclinuxfdpiceabi +#xfail: h8300-*-* #failif #... diff --git a/ld/testsuite/ld-elf/pr22393-1d.d b/ld/testsuite/ld-elf/pr22393-1d.d index e74dc10..573dabf 100644 --- a/ld/testsuite/ld-elf/pr22393-1d.d +++ b/ld/testsuite/ld-elf/pr22393-1d.d @@ -2,6 +2,7 @@ #ld: -pie -z separate-code #readelf: -l --wide #target: *-*-linux-gnu *-*-gnu* *-*-nacl* arm*-*-uclinuxfdpiceabi +#xfail: h8300-*-* #failif #... diff --git a/ld/testsuite/ld-elf/pr22393-1e.d b/ld/testsuite/ld-elf/pr22393-1e.d index cef1a4c..272a85f 100644 --- a/ld/testsuite/ld-elf/pr22393-1e.d +++ b/ld/testsuite/ld-elf/pr22393-1e.d @@ -2,6 +2,7 @@ #ld: -z separate-code #readelf: -l --wide #target: *-*-linux-gnu *-*-gnu* *-*-nacl* arm*-*-uclinuxfdpiceabi +#xfail: h8300-*-* #failif #... diff --git a/ld/testsuite/ld-elf/pr22393-1f.d b/ld/testsuite/ld-elf/pr22393-1f.d index 9724e0e..7507c40 100644 --- a/ld/testsuite/ld-elf/pr22393-1f.d +++ b/ld/testsuite/ld-elf/pr22393-1f.d @@ -2,6 +2,7 @@ #ld: -z separate-code #readelf: -l --wide #target: *-*-linux-gnu *-*-gnu* *-*-nacl* arm*-*-uclinuxfdpiceabi +#xfail: h8300-*-* #failif #... diff --git a/ld/testsuite/ld-elf/pr22423.d b/ld/testsuite/ld-elf/pr22423.d index 9255c7e..5cd1ffb 100644 --- a/ld/testsuite/ld-elf/pr22423.d +++ b/ld/testsuite/ld-elf/pr22423.d @@ -2,6 +2,7 @@ #readelf: -l -W #ld: -pie --dynamic-linker=/usr/lib/ld.so.1 #target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi +#xfail: h8300-*-* #... +PHDR +0x[0-9a-f]+ +0x[0-9a-f]+ +0x[0-9a-f]+ +0x[0-9a-f]+ +0x[0-9a-f]+ +R +0x[48]? diff --git a/ld/testsuite/ld-elf/pr22450.d b/ld/testsuite/ld-elf/pr22450.d index 30754ec..08905aa 100644 --- a/ld/testsuite/ld-elf/pr22450.d +++ b/ld/testsuite/ld-elf/pr22450.d @@ -1,7 +1,7 @@ #source: pr22450.s #readelf: --notes --wide #ld: -r -#xfail: z80-*-* +#xfail: avr-*-* crx-*-* h8300-*-* ip2k-*-* m68hc11-*-* xc16x-*-* z80-*-* # Fails on H8300 because it does not generate the correct relocs for the size fields. # Fails on AVR, IP2K, M68HC11, XC16C because the assembler does not calculate the correct values for the differences of local symbols. # Fails on CRX because readelf does not know how to apply CRX reloc number 20 (R_CRX_SWITCH32). diff --git a/ld/testsuite/ld-elf/pr23658-1c.d b/ld/testsuite/ld-elf/pr23658-1c.d index 6d8fd7e..166186d 100644 --- a/ld/testsuite/ld-elf/pr23658-1c.d +++ b/ld/testsuite/ld-elf/pr23658-1c.d @@ -6,6 +6,7 @@ #ld: --build-id -shared #readelf: -l --wide #target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi +#xfail: h8300-*-* #... +[0-9]+ +\.note\.4 \.note\.1 + diff --git a/ld/testsuite/ld-elf/pr25708.d b/ld/testsuite/ld-elf/pr25708.d index e487d22..49957cc 100644 --- a/ld/testsuite/ld-elf/pr25708.d +++ b/ld/testsuite/ld-elf/pr25708.d @@ -2,6 +2,8 @@ #ld: -shared -version-script pr13195.t #nm: -D #target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi +#xfail: h8300-*-* hppa64-*-* +# h8300 doesn't support -shared, and hppa64 creates .foo #.. 0+ A VERS_2.0 diff --git a/ld/testsuite/ld-elf/rpath-1.d b/ld/testsuite/ld-elf/rpath-1.d index 61da219..4efdabd 100644 --- a/ld/testsuite/ld-elf/rpath-1.d +++ b/ld/testsuite/ld-elf/rpath-1.d @@ -2,6 +2,7 @@ #readelf: -d -W #ld: -shared -rpath=. --disable-new-dtags #target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi +#xfail: h8300-*-* #failif #... diff --git a/ld/testsuite/ld-elf/rpath-2.d b/ld/testsuite/ld-elf/rpath-2.d index 8bb19f8..cf8c1da 100644 --- a/ld/testsuite/ld-elf/rpath-2.d +++ b/ld/testsuite/ld-elf/rpath-2.d @@ -2,6 +2,7 @@ #readelf: -d -W #ld: -shared -rpath=. --disable-new-dtags #target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi +#xfail: h8300-*-* #... +0x[0-9a-f]+ +\(RPATH\) +Library rpath: +\[.\] diff --git a/ld/testsuite/ld-elf/runpath-1.d b/ld/testsuite/ld-elf/runpath-1.d index 72667e8..db01092 100644 --- a/ld/testsuite/ld-elf/runpath-1.d +++ b/ld/testsuite/ld-elf/runpath-1.d @@ -2,6 +2,7 @@ #readelf: -d -W #ld: -shared -rpath . --enable-new-dtags #target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi +#xfail: h8300-*-* #failif #... diff --git a/ld/testsuite/ld-elf/runpath-2.d b/ld/testsuite/ld-elf/runpath-2.d index 97a9532..2cd86a6 100644 --- a/ld/testsuite/ld-elf/runpath-2.d +++ b/ld/testsuite/ld-elf/runpath-2.d @@ -2,6 +2,7 @@ #readelf: -d -W #ld: -shared -rpath . --enable-new-dtags #target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi +#xfail: h8300-*-* #... +0x[0-9a-f]+ +\(RUNPATH\) +Library runpath: +\[.\] diff --git a/ld/testsuite/ld-elf/sizeofb.d b/ld/testsuite/ld-elf/sizeofb.d index 31cafa6..567ed46 100644 --- a/ld/testsuite/ld-elf/sizeofb.d +++ b/ld/testsuite/ld-elf/sizeofb.d @@ -2,6 +2,7 @@ #ld: -shared #readelf: -sW #target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi +#xfail: h8300-*-* Symbol table '\.dynsym' contains [0-9]+ entries: +Num: +Value +Size Type +Bind +Vis +Ndx Name diff --git a/ld/testsuite/ld-elf/startofb.d b/ld/testsuite/ld-elf/startofb.d index 0320328..833d2b6 100644 --- a/ld/testsuite/ld-elf/startofb.d +++ b/ld/testsuite/ld-elf/startofb.d @@ -2,6 +2,7 @@ #ld: -shared #readelf: -sW #target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi +#xfail: h8300-*-* Symbol table '\.dynsym' contains [0-9]+ entries: +Num: +Value +Size Type +Bind +Vis +Ndx Name diff --git a/ld/testsuite/ld-elf/strtab.d b/ld/testsuite/ld-elf/strtab.d index bf346d6..51199f4 100644 --- a/ld/testsuite/ld-elf/strtab.d +++ b/ld/testsuite/ld-elf/strtab.d @@ -1,6 +1,7 @@ #ld: -shared #readelf: -W -x .strtab #target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi +#xfail: h8300-*-* #failif #... diff --git a/ld/testsuite/ld-elf/textaddr1.d b/ld/testsuite/ld-elf/textaddr1.d index f004ea7..f9c04f3 100644 --- a/ld/testsuite/ld-elf/textaddr1.d +++ b/ld/testsuite/ld-elf/textaddr1.d @@ -2,6 +2,7 @@ #ld: -Ttext-segment 0x7000000 -z max-page-size=0x200000 -z noseparate-code #readelf: -l --wide #target: *-*-linux-gnu *-*-gnu* arm*-*-uclinuxfdpiceabi +#xfail: h8300-*-* #... LOAD +0x0+ 0x0*7000000 0x0*7000000 0x0*[0-9a-f][0-9a-f][0-9a-f] 0x0*[0-9a-f][0-9a-f][0-9a-f] R E 0x200000 diff --git a/ld/testsuite/ld-elf/textaddr2.d b/ld/testsuite/ld-elf/textaddr2.d index 73d88b0..62eb091 100644 --- a/ld/testsuite/ld-elf/textaddr2.d +++ b/ld/testsuite/ld-elf/textaddr2.d @@ -2,6 +2,7 @@ #ld: -shared -Ttext-segment 0x7000000 -z max-page-size=0x200000 -z noseparate-code #readelf: -l --wide #target: *-*-linux-gnu *-*-gnu* arm*-*-uclinuxfdpiceabi +#xfail: h8300-*-* #... LOAD +0x0+ 0x0*7000000 0x0*7000000 0x0*[0-9a-f]+ 0x0*[0-9a-f]+ R[ W]E 0x200000 diff --git a/ld/testsuite/ld-elf/textaddr4.d b/ld/testsuite/ld-elf/textaddr4.d index 746ec46..736592f 100644 --- a/ld/testsuite/ld-elf/textaddr4.d +++ b/ld/testsuite/ld-elf/textaddr4.d @@ -2,6 +2,7 @@ #ld: -z max-page-size=0x10000 -Ttext-segment 0x10000 -z noseparate-code #readelf: -l --wide #target: *-*-linux-gnu *-*-gnu* arm*-*-uclinuxfdpiceabi +#xfail: h8300-*-* #... LOAD +0x0+ 0x0*10000 0x0*10000 0x0*[0-9a-f][0-9a-f][0-9a-f] 0x0*[0-9a-f][0-9a-f][0-9a-f] R E 0x10000 diff --git a/ld/testsuite/ld-elf/textaddr5.d b/ld/testsuite/ld-elf/textaddr5.d index 3ce8d1d..3b2c96a 100644 --- a/ld/testsuite/ld-elf/textaddr5.d +++ b/ld/testsuite/ld-elf/textaddr5.d @@ -1,4 +1,5 @@ #source: maxpage1.s #ld: -shared -z max-page-size=0x200000 -Ttext-segment 0x10000 #target: *-*-linux-gnu *-*-gnu* arm*-*-uclinuxfdpiceabi +#xfail: h8300-*-* #warning: .*address of `text-segment' isn't multiple of maximum page size diff --git a/ld/testsuite/ld-elf/textaddr6.d b/ld/testsuite/ld-elf/textaddr6.d index aa5cf56..6afc646 100644 --- a/ld/testsuite/ld-elf/textaddr6.d +++ b/ld/testsuite/ld-elf/textaddr6.d @@ -2,6 +2,7 @@ #ld: -shared -z max-page-size=0x10000 -Ttext-segment 0x10000 -z noseparate-code #readelf: -l --wide #target: *-*-linux-gnu *-*-gnu* arm*-*-uclinuxfdpiceabi +#xfail: h8300-*-* #... LOAD +0x0+ 0x0*10000 0x0*10000 0x0*[0-9a-f]+ 0x0*[0-9a-f]+ R[ W]E 0x10000 diff --git a/ld/testsuite/ld-elf/unknown2.d b/ld/testsuite/ld-elf/unknown2.d index 2e92a5a..ec89fb1 100644 --- a/ld/testsuite/ld-elf/unknown2.d +++ b/ld/testsuite/ld-elf/unknown2.d @@ -2,6 +2,7 @@ #ld: -shared #readelf: -S #target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi +#xfail: h8300-*-* #... \[[ 0-9]+\] \.note.foo[ \t]+NOTE[ \t]+.* diff --git a/ld/testsuite/ld-h8300/gcsection.d b/ld/testsuite/ld-h8300/gcsection.d index 638d985..acf39be 100644 --- a/ld/testsuite/ld-h8300/gcsection.d +++ b/ld/testsuite/ld-h8300/gcsection.d @@ -1,7 +1,8 @@ # name: H8300 GCC section test case -# ld: --gc-sections -m h8300helf +# ld: --gc-sections # objdump: -d --no-show-raw-insn -.*: file format .*-h8300 + +.*: file format .* Disassembly of section .text: diff --git a/ld/testsuite/ld-h8300/h8300.exp b/ld/testsuite/ld-h8300/h8300.exp index 7511252..1bd6519 100644 --- a/ld/testsuite/ld-h8300/h8300.exp +++ b/ld/testsuite/ld-h8300/h8300.exp @@ -27,11 +27,16 @@ if ![istarget h8300-*-*] { return } +set emul elf +if [istarget *-*-linux*] { + set emul elf_linux +} + run_dump_test relax -run_dump_test relax-2 -run_dump_test relax-3 -run_dump_test relax-4 -run_dump_test relax-5 -run_dump_test relax-6 -run_dump_test relax-7 -run_dump_test gcsection +run_dump_test relax-2 [list [list ld "-m h8300h$emul"]] +run_dump_test relax-3 [list [list ld "-m h8300s$emul"]] +run_dump_test relax-4 [list [list ld "-m h8300s$emul"]] +run_dump_test relax-5 [list [list ld "-m h8300s$emul"]] +run_dump_test relax-6 [list [list ld "-m h8300s$emul"]] +run_dump_test relax-7 [list [list ld "-m h8300s$emul"]] +run_dump_test gcsection [list [list ld "-m h8300h$emul"]] diff --git a/ld/testsuite/ld-h8300/relax-2.d b/ld/testsuite/ld-h8300/relax-2.d index b79f5c2..7e7964b 100644 --- a/ld/testsuite/ld-h8300/relax-2.d +++ b/ld/testsuite/ld-h8300/relax-2.d @@ -1,8 +1,8 @@ # name: H8300 Relaxation Test 2 -# ld: --relax -m h8300helf +# ld: --relax # objdump: -d --no-show-raw-insn -.*: file format .*-h8300 +.*: file format .* Disassembly of section .text: diff --git a/ld/testsuite/ld-h8300/relax-3.d b/ld/testsuite/ld-h8300/relax-3.d index b9eded2..f5a9390 100644 --- a/ld/testsuite/ld-h8300/relax-3.d +++ b/ld/testsuite/ld-h8300/relax-3.d @@ -1,8 +1,8 @@ # name: H8300 Relaxation Test 3 -# ld: --relax -m h8300self +# ld: --relax # objdump: -d -.*: file format .*-h8300 +.*: file format .* Disassembly of section .text: diff --git a/ld/testsuite/ld-h8300/relax-4.d b/ld/testsuite/ld-h8300/relax-4.d index b8d38ce..ee80bc3 100644 --- a/ld/testsuite/ld-h8300/relax-4.d +++ b/ld/testsuite/ld-h8300/relax-4.d @@ -1,8 +1,8 @@ # name: H8300 Relaxation Test 4 -# ld: --relax -m h8300self +# ld: --relax # objdump: -d --no-show-raw-insn -.*: file format .*-h8300 +.*: file format .* Disassembly of section .text: diff --git a/ld/testsuite/ld-h8300/relax-5.d b/ld/testsuite/ld-h8300/relax-5.d index 01e12a5..00c4fa8 100644 --- a/ld/testsuite/ld-h8300/relax-5.d +++ b/ld/testsuite/ld-h8300/relax-5.d @@ -1,9 +1,9 @@ # name: H8300 Relaxation Test 5 # source: relax-5.s -# ld: --relax -m h8300self +# ld: --relax # objdump: -d --no-show-raw-insn -.*: file format .*-h8300 +.*: file format .* Disassembly of section .text: diff --git a/ld/testsuite/ld-h8300/relax-6.d b/ld/testsuite/ld-h8300/relax-6.d index 023af78..54853ef 100644 --- a/ld/testsuite/ld-h8300/relax-6.d +++ b/ld/testsuite/ld-h8300/relax-6.d @@ -1,9 +1,9 @@ # name: H8300 Relaxation Test 6 # source: relax-6.s -# ld: --relax -m h8300self +# ld: --relax # objdump: -d --no-show-raw-insn -.*: file format .*-h8300 +.*: file format .* Disassembly of section .text: 00000100 <_start>: diff --git a/ld/testsuite/ld-h8300/relax-7.d b/ld/testsuite/ld-h8300/relax-7.d index ecf1a10..9bd6862 100644 --- a/ld/testsuite/ld-h8300/relax-7.d +++ b/ld/testsuite/ld-h8300/relax-7.d @@ -1,9 +1,9 @@ # name: H8300 Relaxation Test 7 # source: relax-7?.s -# ld: --relax -m h8300self +# ld: --relax # objdump: -d -s --no-show-raw-insn -.*: file format .*-h8300 +.*: file format .* Contents of section .text: 0100 1a801aa2 7a01ffff 80000100 6f2201d0 [^\000]* diff --git a/ld/testsuite/ld-h8300/relax.d b/ld/testsuite/ld-h8300/relax.d index e7315a1..fb86358 100644 --- a/ld/testsuite/ld-h8300/relax.d +++ b/ld/testsuite/ld-h8300/relax.d @@ -5,7 +5,7 @@ # Based on the test case reported by Kazu Hirata: # http://sources.redhat.com/ml/binutils/2002-11/msg00301.html -.*: file format .*-h8300 +.*: file format .* Disassembly of section .text: diff --git a/ld/testsuite/ld-undefined/entry-3.d b/ld/testsuite/ld-undefined/entry-3.d index 474a6d9..3a01bc1 100644 --- a/ld/testsuite/ld-undefined/entry-3.d +++ b/ld/testsuite/ld-undefined/entry-3.d @@ -3,6 +3,7 @@ #ld: -shared --entry foo tmpdir/libentry.a #nm: -n #target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi +#xfail: h8300-*-* #... [0-9a-f]+ T +foo diff --git a/ld/testsuite/ld-undefined/entry-4.d b/ld/testsuite/ld-undefined/entry-4.d index fa390a4..a072e9b 100644 --- a/ld/testsuite/ld-undefined/entry-4.d +++ b/ld/testsuite/ld-undefined/entry-4.d @@ -3,6 +3,7 @@ #ld: -shared --entry foo -u foo tmpdir/libentry.a #nm: -n #target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi +#xfail: h8300-*-* #... [0-9a-f]+ T +foo |