Skip PR ld/21562 tests on targets with leading char or without --gc-sections
authorH.J. Lu <hjl.tools@gmail.com>
Wed, 14 Jun 2017 11:36:17 +0000 (04:36 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Wed, 14 Jun 2017 13:07:20 +0000 (06:07 -0700)
Symbol lookup in linker will always fail on targets with leading char
in symbol name since __start_SECNAME and __stop_SECNAME in C may be
___start_SECNAME and ___stop_SECNAME in assembly.  Also tests with
--gc-sections always fails on targets without --gc-sections support.

* testsuite/ld-elf/pr21562a.d: Skip on targets with leading char
in in symbol name or without --gc-sections.
* testsuite/ld-elf/pr21562b.d: Likewise.
* testsuite/ld-elf/pr21562c.d: Likewise.
* testsuite/ld-elf/pr21562d.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/pr21562e.d: Skip on targets with leading char
in symbol name.
* testsuite/ld-elf/pr21562f.d: Likewise.
* testsuite/ld-elf/pr21562g.d: Likewise.
* testsuite/ld-elf/pr21562h.d: Likewise.

15 files changed:
ld/ChangeLog
ld/testsuite/ld-elf/pr21562a.d
ld/testsuite/ld-elf/pr21562b.d
ld/testsuite/ld-elf/pr21562c.d
ld/testsuite/ld-elf/pr21562d.d
ld/testsuite/ld-elf/pr21562e.d
ld/testsuite/ld-elf/pr21562f.d
ld/testsuite/ld-elf/pr21562g.d
ld/testsuite/ld-elf/pr21562h.d
ld/testsuite/ld-elf/pr21562i.d
ld/testsuite/ld-elf/pr21562j.d
ld/testsuite/ld-elf/pr21562k.d
ld/testsuite/ld-elf/pr21562l.d
ld/testsuite/ld-elf/pr21562m.d
ld/testsuite/ld-elf/pr21562n.d

index 8c60970d86503a459b0e397dcb7421f02a6b4846..fd073be3beacbac81fc95d2278d1b370880bcc50 100644 (file)
@@ -1,3 +1,22 @@
+2017-06-14  H.J. Lu  <hongjiu.lu@intel.com>
+
+       * testsuite/ld-elf/pr21562a.d: Skip on targets with leading char
+       in in symbol name or without --gc-sections.
+       * testsuite/ld-elf/pr21562b.d: Likewise.
+       * testsuite/ld-elf/pr21562c.d: Likewise.
+       * testsuite/ld-elf/pr21562d.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/pr21562e.d: Skip on targets with leading char
+       in symbol name.
+       * testsuite/ld-elf/pr21562f.d: Likewise.
+       * testsuite/ld-elf/pr21562g.d: Likewise.
+       * testsuite/ld-elf/pr21562h.d: Likewise.
+
 2017-06-14  H.J. Lu  <hongjiu.lu@intel.com>
 
        * testsuite/ld-gc/pr20022a.s: Add size to bar.
index 009dcfc05c356ce70666bab94c1564821647d8aa..3b0dc6517e32ed60fe067001baab0bdd764841b0 100644 (file)
@@ -1,6 +1,13 @@
 #ld: -shared -z defs --gc-sections
 #readelf: -s -S --wide
 #target: *-*-linux* *-*-gnu*
+#notarget: d30v-*-* dlx-*-* i960-*-* pj*-*-*
+#notarget: hppa64-*-* i370-*-* i860-*-* ia64-*-* mep-*-* mn10200-*-*
+#notarget: bfin-*-* cr16-*-* cr16c-*-* cris*-*-* crx-*-* epiphany-*-*
+#notarget: h8300-*-* ip2k-*-* m10200-*-* m10300-*-* m32c-*-* metag-*-*
+#notarget: metag-*-* rl78-*-* rx-*-* sh*-*-* v850*-*-*
+# Targets with a leading char will faill this test.
+# generic linker targets don't support --gc-sections, nor do a bunch of others
 
 #...
   \[[ 0-9]+\] scnfoo[ \t]+PROGBITS[ \t]+[0-9a-f]+ +[0-9a-f]+ +0*10[ \t]+.*
index a03dbad6a055de203beafa88de80032e1fa2eb01..af82bb8b69b3045a990185373cf72ff2cf7443ee 100644 (file)
@@ -1,6 +1,13 @@
 #ld: -shared -z defs --gc-sections
 #readelf: -s -S --wide
 #target: *-*-linux* *-*-gnu*
+#notarget: d30v-*-* dlx-*-* i960-*-* pj*-*-*
+#notarget: hppa64-*-* i370-*-* i860-*-* ia64-*-* mep-*-* mn10200-*-*
+#notarget: bfin-*-* cr16-*-* cr16c-*-* cris*-*-* crx-*-* epiphany-*-*
+#notarget: h8300-*-* ip2k-*-* m10200-*-* m10300-*-* m32c-*-* metag-*-*
+#notarget: metag-*-* rl78-*-* rx-*-* sh*-*-* v850*-*-*
+# Targets with a leading char will faill this test.
+# generic linker targets don't support --gc-sections, nor do a bunch of others
 
 #...
   \[[ 0-9]+\] scnfoo[ \t]+PROGBITS[ \t]+[0-9a-f]+ +[0-9a-f]+ +0*10[ \t]+.*
index 9de035faac64cc51b4d4ee97344f71b34f7d0283..0fcc25ab9d747477934edd0b5c0bb5a65ca11a5a 100644 (file)
@@ -2,6 +2,13 @@
 #ld: -shared -z defs --gc-sections -T pr21562a.t
 #readelf: -s -S --wide
 #target: *-*-linux* *-*-gnu*
+#notarget: d30v-*-* dlx-*-* i960-*-* pj*-*-*
+#notarget: hppa64-*-* i370-*-* i860-*-* ia64-*-* mep-*-* mn10200-*-*
+#notarget: bfin-*-* cr16-*-* cr16c-*-* cris*-*-* crx-*-* epiphany-*-*
+#notarget: h8300-*-* ip2k-*-* m10200-*-* m10300-*-* m32c-*-* metag-*-*
+#notarget: metag-*-* rl78-*-* rx-*-* sh*-*-* v850*-*-*
+# Targets with a leading char will faill this test.
+# generic linker targets don't support --gc-sections, nor do a bunch of others
 
 #...
   \[[ 0-9]+\] scnfoo[ \t]+PROGBITS[ \t]+[0-9a-f]+ +[0-9a-f]+ +0*10[ \t]+.*
index e5344eff805c206fe37c800db5069c878261459f..b966b80114775e5aa879bcb0c88f16198fdf87d2 100644 (file)
@@ -2,6 +2,13 @@
 #ld: -shared -z defs --gc-sections -T pr21562a.t
 #readelf: -s -S --wide
 #target: *-*-linux* *-*-gnu*
+#notarget: d30v-*-* dlx-*-* i960-*-* pj*-*-*
+#notarget: hppa64-*-* i370-*-* i860-*-* ia64-*-* mep-*-* mn10200-*-*
+#notarget: bfin-*-* cr16-*-* cr16c-*-* cris*-*-* crx-*-* epiphany-*-*
+#notarget: h8300-*-* ip2k-*-* m10200-*-* m10300-*-* m32c-*-* metag-*-*
+#notarget: metag-*-* rl78-*-* rx-*-* sh*-*-* v850*-*-*
+# Targets with a leading char will faill this test.
+# generic linker targets don't support --gc-sections, nor do a bunch of others
 
 #...
   \[[ 0-9]+\] scnfoo[ \t]+PROGBITS[ \t]+[0-9a-f]+ +[0-9a-f]+ +0*10[ \t]+.*
index afaf7e56a616cf9751b64e18ab2ac4fa73a6d72e..6f73c7b7182e18b2573ce06071bb8782c9613d8a 100644 (file)
@@ -2,6 +2,10 @@
 #ld: -shared -z defs
 #readelf: -s -S --wide
 #target: *-*-linux* *-*-gnu*
+#notarget: bfin-*-* cr16-*-* cr16c-*-* cris*-*-* crx-*-* epiphany-*-*
+#notarget: h8300-*-* ip2k-*-* m10200-*-* m10300-*-* m32c-*-* metag-*-*
+#notarget: metag-*-* rl78-*-* rx-*-* sh*-*-* v850*-*-*
+# Targets with a leading char will faill this test.
 
 #...
   \[[ 0-9]+\] scnfoo[ \t]+PROGBITS[ \t]+[0-9a-f]+ +[0-9a-f]+ +0*10[ \t]+.*
index b9c324a47d20c15c6d68641c5999fc111e166e7a..244f917c52c56e78e50d98649c55e3b68ff55725 100644 (file)
@@ -2,6 +2,10 @@
 #ld: -shared -z defs
 #readelf: -s -S --wide
 #target: *-*-linux* *-*-gnu*
+#notarget: bfin-*-* cr16-*-* cr16c-*-* cris*-*-* crx-*-* epiphany-*-*
+#notarget: h8300-*-* ip2k-*-* m10200-*-* m10300-*-* m32c-*-* metag-*-*
+#notarget: metag-*-* rl78-*-* rx-*-* sh*-*-* v850*-*-*
+# Targets with a leading char will faill this test.
 
 #...
   \[[ 0-9]+\] scnfoo[ \t]+PROGBITS[ \t]+[0-9a-f]+ +[0-9a-f]+ +0*10[ \t]+.*
index a813594d275324a5ddd70378a5067102694a6e3d..411e1e31e73a4a53f573b5cf7476f1517346130e 100644 (file)
@@ -2,6 +2,10 @@
 #ld: -shared -z defs -T pr21562a.t
 #readelf: -s -S --wide
 #target: *-*-linux* *-*-gnu*
+#notarget: bfin-*-* cr16-*-* cr16c-*-* cris*-*-* crx-*-* epiphany-*-*
+#notarget: h8300-*-* ip2k-*-* m10200-*-* m10300-*-* m32c-*-* metag-*-*
+#notarget: metag-*-* rl78-*-* rx-*-* sh*-*-* v850*-*-*
+# Targets with a leading char will faill this test.
 
 #...
   \[[ 0-9]+\] scnfoo[ \t]+PROGBITS[ \t]+[0-9a-f]+ +[0-9a-f]+ +0*10[ \t]+.*
index 6adabd7ba4f062fffdabb157fb734257a35d5d9a..dc4b72a760b690662df83c7eb188a1f007635b68 100644 (file)
@@ -2,6 +2,10 @@
 #ld: -shared -z defs -T pr21562a.t
 #readelf: -s -S --wide
 #target: *-*-linux* *-*-gnu*
+#notarget: bfin-*-* cr16-*-* cr16c-*-* cris*-*-* crx-*-* epiphany-*-*
+#notarget: h8300-*-* ip2k-*-* m10200-*-* m10300-*-* m32c-*-* metag-*-*
+#notarget: metag-*-* rl78-*-* rx-*-* sh*-*-* v850*-*-*
+# Targets with a leading char will faill this test.
 
 #...
   \[[ 0-9]+\] scnfoo[ \t]+PROGBITS[ \t]+[0-9a-f]+ +[0-9a-f]+ +0*10[ \t]+.*
index 49eb2ecb64797ab4a9567cce89eb9d7beb4a7e3c..47b9cad0be66d0ef844ae4bd2f99299a9bbc1df1 100644 (file)
@@ -2,6 +2,13 @@
 #ld: -shared -z defs --gc-sections -T pr21562b.t
 #readelf: -s -S --wide
 #target: *-*-linux* *-*-gnu*
+#notarget: d30v-*-* dlx-*-* i960-*-* pj*-*-*
+#notarget: hppa64-*-* i370-*-* i860-*-* ia64-*-* mep-*-* mn10200-*-*
+#notarget: bfin-*-* cr16-*-* cr16c-*-* cris*-*-* crx-*-* epiphany-*-*
+#notarget: h8300-*-* ip2k-*-* m10200-*-* m10300-*-* m32c-*-* metag-*-*
+#notarget: metag-*-* rl78-*-* rx-*-* sh*-*-* v850*-*-*
+# Targets with a leading char will faill this test.
+# generic linker targets don't support --gc-sections, nor do a bunch of others
 
 #...
   \[[ 0-9]+\] scnfoo[ \t]+PROGBITS[ \t]+[0-9a-f]+ +[0-9a-f]+ +0*10[ \t]+.*
index 14bb03587d1320be66f51a17254c35dd1f6a2cbf..eba248786a3da4dc71255c9a2aaff62b997ecae3 100644 (file)
@@ -2,6 +2,13 @@
 #ld: -shared -z defs --gc-sections -T pr21562b.t
 #readelf: -s -S --wide
 #target: *-*-linux* *-*-gnu*
+#notarget: d30v-*-* dlx-*-* i960-*-* pj*-*-*
+#notarget: hppa64-*-* i370-*-* i860-*-* ia64-*-* mep-*-* mn10200-*-*
+#notarget: bfin-*-* cr16-*-* cr16c-*-* cris*-*-* crx-*-* epiphany-*-*
+#notarget: h8300-*-* ip2k-*-* m10200-*-* m10300-*-* m32c-*-* metag-*-*
+#notarget: metag-*-* rl78-*-* rx-*-* sh*-*-* v850*-*-*
+# Targets with a leading char will faill this test.
+# generic linker targets don't support --gc-sections, nor do a bunch of others
 
 #...
   \[[ 0-9]+\] scnfoo[ \t]+PROGBITS[ \t]+[0-9a-f]+ +[0-9a-f]+ +0*10[ \t]+.*
index 1bf1e93177579eb163c323cec04eeb47c90f1f5c..594bc896a32caac1f245da7a4604304853e61a68 100644 (file)
@@ -2,6 +2,13 @@
 #ld: -shared -z defs --gc-sections -T pr21562c.t
 #readelf: -s -S --wide
 #target: *-*-linux* *-*-gnu*
+#notarget: d30v-*-* dlx-*-* i960-*-* pj*-*-*
+#notarget: hppa64-*-* i370-*-* i860-*-* ia64-*-* mep-*-* mn10200-*-*
+#notarget: bfin-*-* cr16-*-* cr16c-*-* cris*-*-* crx-*-* epiphany-*-*
+#notarget: h8300-*-* ip2k-*-* m10200-*-* m10300-*-* m32c-*-* metag-*-*
+#notarget: metag-*-* rl78-*-* rx-*-* sh*-*-* v850*-*-*
+# Targets with a leading char will faill this test.
+# generic linker targets don't support --gc-sections, nor do a bunch of others
 
 #...
   \[[ 0-9]+\] \.foo[ \t]+PROGBITS[ \t]+[0-9a-f]+ +[0-9a-f]+ +0*10[ \t]+.*
index 8297ec2b8eee4832d70ff7a95ebcd7d5b4ef30db..1a9c2d663b1bde0b43cf5843ae658b69e72f81c5 100644 (file)
@@ -2,6 +2,13 @@
 #ld: -shared -z defs --gc-sections -T pr21562c.t
 #readelf: -s -S --wide
 #target: *-*-linux* *-*-gnu*
+#notarget: d30v-*-* dlx-*-* i960-*-* pj*-*-*
+#notarget: hppa64-*-* i370-*-* i860-*-* ia64-*-* mep-*-* mn10200-*-*
+#notarget: bfin-*-* cr16-*-* cr16c-*-* cris*-*-* crx-*-* epiphany-*-*
+#notarget: h8300-*-* ip2k-*-* m10200-*-* m10300-*-* m32c-*-* metag-*-*
+#notarget: metag-*-* rl78-*-* rx-*-* sh*-*-* v850*-*-*
+# Targets with a leading char will faill this test.
+# generic linker targets don't support --gc-sections, nor do a bunch of others
 
 #...
   \[[ 0-9]+\] \.foo[ \t]+PROGBITS[ \t]+[0-9a-f]+ +[0-9a-f]+ +0*10[ \t]+.*
index 34f8df09aabf907fa2f53178c988f43162058ce8..b21698a3ccd2ab96080cb302afa351a28dd174f5 100644 (file)
@@ -2,6 +2,13 @@
 #ld: -shared -z defs --gc-sections -T pr21562d.t
 #readelf: -s -S --wide
 #target: *-*-linux* *-*-gnu*
+#notarget: d30v-*-* dlx-*-* i960-*-* pj*-*-*
+#notarget: hppa64-*-* i370-*-* i860-*-* ia64-*-* mep-*-* mn10200-*-*
+#notarget: bfin-*-* cr16-*-* cr16c-*-* cris*-*-* crx-*-* epiphany-*-*
+#notarget: h8300-*-* ip2k-*-* m10200-*-* m10300-*-* m32c-*-* metag-*-*
+#notarget: metag-*-* rl78-*-* rx-*-* sh*-*-* v850*-*-*
+# Targets with a leading char will faill this test.
+# generic linker targets don't support --gc-sections, nor do a bunch of others
 
 #...
   \[[ 0-9]+\] \.foo[ \t]+PROGBITS[ \t]+[0-9a-f]+ +[0-9a-f]+ +0*10[ \t]+.*
index e4b1919c670d59c7e8a3b5fd6881ccb885cff691..561ec6bec1bf6a309b7943dad73899aae15f8f11 100644 (file)
@@ -2,6 +2,13 @@
 #ld: -shared -z defs --gc-sections -T pr21562d.t
 #readelf: -s -S --wide
 #target: *-*-linux* *-*-gnu*
+#notarget: d30v-*-* dlx-*-* i960-*-* pj*-*-*
+#notarget: hppa64-*-* i370-*-* i860-*-* ia64-*-* mep-*-* mn10200-*-*
+#notarget: bfin-*-* cr16-*-* cr16c-*-* cris*-*-* crx-*-* epiphany-*-*
+#notarget: h8300-*-* ip2k-*-* m10200-*-* m10300-*-* m32c-*-* metag-*-*
+#notarget: metag-*-* rl78-*-* rx-*-* sh*-*-* v850*-*-*
+# Targets with a leading char will faill this test.
+# generic linker targets don't support --gc-sections, nor do a bunch of others
 
 #...
   \[[ 0-9]+\] \.foo[ \t]+PROGBITS[ \t]+[0-9a-f]+ +[0-9a-f]+ +0*10[ \t]+.*
This page took 0.034553 seconds and 4 git commands to generate.