From: Alan Modra Date: Wed, 25 Mar 2020 02:37:54 +0000 (+1030) Subject: h8300-linux ld testsuite X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=86fd7e2e109813b3934cf7880b93d4bc8f779b8b;p=binutils-gdb.git 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. --- diff --git a/ld/ChangeLog b/ld/ChangeLog index ac7dca4625a..1552d19b735 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,97 @@ +2020-03-25 Alan Modra + + * 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 PR binutils/25708 diff --git a/ld/testsuite/ld-elf/compress1c.d b/ld/testsuite/ld-elf/compress1c.d index 73f716e1ad2..d95f4ff7b89 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 7fc57ef74be..e056429cc28 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 9b54618a176..db93f7016c6 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 a4bbe3c9594..95717f66963 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 273ce3d460f..6e534fc02ba 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 55f9a584a40..2baf1593ecf 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 ac8407d2c7b..cee6c1dab6d 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 daaf00448a4..01a008524a5 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 726525b9936..71e956160ec 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 efe675e0c7f..d21c1c92398 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 0e38b64cdc4..e118163c254 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 5fbfa54e55e..eb1517e890f 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 be3d24a19b6..c5b7876a126 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 49316a1faf1..9c36b2692f8 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 40cc852dd6f..1c794c13640 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 bc3ccf8e98f..41c47380e6c 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 0e337975af6..6c50dc0e729 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 b8ff5341993..34e0fad2552 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 f4e9259d4c1..e3058ed38a5 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 aa7b855d405..94511dd683e 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 054df31f19a..bd33db2258a 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 bc23650669d..30b9ce68ebc 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 8a0f9bd805f..4e58929e5a8 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 d0e349d0244..6e7c22a956e 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 7726d3bc47a..3d6554e7794 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 e599d90d274..dcddbfd93b1 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 6ab0d0e39ec..a5af4d33a52 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 218da4035c3..aa0a69cc9af 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 04e6791406c..24a9b174847 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 c315f3d3866..969bdc43731 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 a82677c471f..f7b8aae4980 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 af81161e225..e7c2dde656c 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 f1a455c5533..c3797a8bea8 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 da50d8a3203..ff86c769cc7 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 fe39e9c67bc..8f2049f3e7c 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 31759f15132..7db04179adc 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 c36dd3c7ca7..159292e7e17 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 a751f2ee5d7..5e891b8655e 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 4dc4b7fbf53..758be5cdaf3 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 5323b49fb90..d5a6955d912 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 efe1c5a3250..a68960add35 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 077c84e70da..b3f34cae7ce 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 4f2c8006d30..4bee6f6a28f 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 d500013e70e..a93fe40b13a 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 ccdebede280..2c9d9dddd64 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 97eee51c3f9..28b45a8600f 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 21d78973c94..24c29d99622 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 2233c66d1cf..2dd0d98a13c 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 62d2949d068..2bc714f7ef6 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 5b4a3261c29..8b210bb2c0c 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 a688df5c385..12e53f1fbbe 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 52893c31a81..6ad77ea9292 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 2e3088e23f3..ac77d3edf88 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 2b3c94cdae2..47775d30aec 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 bbfadc9bac3..9e61a12701d 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 57f254bd326..c4fd3ba6ea4 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 c7e58718b5a..41cc8a02090 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 aea589080f1..664e20ecf83 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 e74dc10ce5b..573dabf7aa8 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 cef1a4c6c4a..272a85f9ac1 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 9724e0e3875..7507c40b709 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 9255c7e77bc..5cd1ffb963d 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 30754ec6a5d..08905aabbd0 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 6d8fd7e5376..166186d0945 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 e487d227b3a..49957cc75d5 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 61da219a599..4efdabd4ca4 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 8bb19f85adc..cf8c1da4392 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 72667e8b2f8..db010929d84 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 97a9532f111..2cd86a6785c 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 31cafa6c925..567ed46af2b 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 0320328291d..833d2b62f32 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 bf346d6ada8..51199f43a39 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 f004ea7f7d0..f9c04f3aea7 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 73d88b0fe58..62eb091d76a 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 746ec467792..736592fdae0 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 3ce8d1d2903..3b2c96aec71 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 aa5cf56f482..6afc646510c 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 2e92a5a341a..ec89fb12e1a 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 638d9857498..acf39be8d7f 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 75112528b56..1bd6519222b 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 b79f5c20fcb..7e7964b5c81 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 b9eded21c6a..f5a9390b785 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 b8d38ce8823..ee80bc39644 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 01e12a52e58..00c4fa89ee4 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 023af78a29b..54853ef6dbc 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 ecf1a106ca7..9bd68626c77 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 e7315a1c3db..fb863586bfb 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 474a6d934d1..3a01bc1d490 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 fa390a486ae..a072e9b2789 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