2 #ld: -r --gc-sections --entry bar
4 # generic linker targets don't support --gc-sections, nor do a bunch of others
5 #xfail: d30v-*-* dlx-*-* hppa64-*-* mep-*-* mn10200-*-*
6 #xfail: pj*-*-* pru-*-* xgate-*-*
8 COMDAT group section \[[ 0-9]+\] `.group' \[foo\] contains . sections:
10 \[[ 0-9]+\] \.text\.foo
12 \[[ 0-9]+\] \.data\.foo
14 COMDAT group section \[[ 0-9]+\] `.group' \[bar\] contains . sections:
16 \[[ 0-9]+\] \.text\.bar
18 \[[ 0-9]+\] \.rela?\.text\.bar