Skip PR ld/21562 tests on targets with leading char or without --gc-sections
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.
This commit is contained in:
parent
f78d1b3ae1
commit
8eca1095d9
15 changed files with 105 additions and 0 deletions
19
ld/ChangeLog
19
ld/ChangeLog
|
@ -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.
|
||||
|
|
|
@ -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]+.*
|
||||
|
|
|
@ -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]+.*
|
||||
|
|
|
@ -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]+.*
|
||||
|
|
|
@ -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]+.*
|
||||
|
|
|
@ -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]+.*
|
||||
|
|
|
@ -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]+.*
|
||||
|
|
|
@ -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]+.*
|
||||
|
|
|
@ -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]+.*
|
||||
|
|
|
@ -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]+.*
|
||||
|
|
|
@ -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]+.*
|
||||
|
|
|
@ -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]+.*
|
||||
|
|
|
@ -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]+.*
|
||||
|
|
|
@ -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]+.*
|
||||
|
|
|
@ -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]+.*
|
||||
|
|
Loading…
Add table
Reference in a new issue