681c68c48bdbea7ea4f75e9f6a888f68ddfc126c
[binutils-gdb.git] / ld / testsuite / ld-gc / pr20022.d
1 #source: pr20022b.s
2 #ld: --gc-sections -e _start tmpdir/pr20022.so
3 #readelf: -SsW
4 #target: *-*-linux* *-*-gnu* arm*-*-uclinuxfdpiceabi
5 #xfail: frv-*-* metag-*-* mips*-*-*
6 # Skip on targets without dynamic relocations in .text section.
7
8 #...
9 \[[ 0-9]+\] _foo[ \t]+PROGBITS[ \t]+[0-9a-f]+ +[0-9a-f]+ +[0-9a-f]+[ \t]+.*
10 #...
11 +[0-9]+: +[0-9a-f]+ +[0-9a-f]+ +NOTYPE +GLOBAL +PROTECTED +[0-9]+ +__start__foo
12 #pass