2 #ld
: -shared -z defs
--gc
-sections
-T pr21562a
.t
4 #target
: *-*-linux
* *-*-gnu
* arm
*-*-uclinuxfdpiceabi
5 #xfail
: [is_generic
] h8300
-*-* hppa64
-*-* mep
-*-* mn10200
-*-* ![check_shared_lib_support
]
6 # generic linker targets don
't support --gc-sections, nor do a bunch of others
9 \[[ 0-9]+\] scnfoo[ \t]+PROGBITS[ \t]+[0-9a-f]+ +[0-9a-f]+ +0*10[ \t]+.*
11 +[0-9]+: +[0-9a-f]+ +[0-9a-f]+ +NOTYPE +GLOBAL +PROTECTED +[0-9]+ +___?start_scnfoo