2014-09-12 22:14:23 +00:00
|
|
|
#name: --gc-sections with --defsym
|
|
|
|
#source: dummy.s
|
|
|
|
#ld: --gc-sections -e main --defsym foo=foo2 tmpdir/pr13683.o
|
|
|
|
#nm: --format=bsd
|
2018-12-28 15:25:28 +00:00
|
|
|
#xfail: iq2000-*-* lm32-*-* epiphany-*-* mips64vr-*-* frv-*-* m32c-*-* rl78-*-* rx-*-* sh-*-* powerpc*-*-eabivle msp430-*-*
|
2014-09-12 22:14:23 +00:00
|
|
|
|
|
|
|
# Note - look for both "foo" and "foo2" being defined, non-zero function symbols
|
|
|
|
|
|
|
|
#...
|
|
|
|
0*[1-9a-f]+[0-9a-f]*[ ](T|D)[ ]_*foo
|
2022-10-27 18:45:45 +00:00
|
|
|
#...
|
2014-09-12 22:14:23 +00:00
|
|
|
0*[1-9a-f]+[0-9a-f]*[ ](T|D)[ ]_*foo2
|
|
|
|
#...
|