2 #ld: -r --gc-sections --entry bar
4 # generic linker targets don't support --gc-sections, nor do a bunch of others
5 #xfail: [is_generic] hppa64-*-* mep-*-* mn10200-*-* pru-*-*
7 COMDAT group section \[[ 0-9]+\] `.group' \[foo\] contains . sections:
9 \[[ 0-9]+\] \.text\.foo
11 \[[ 0-9]+\] \.data\.foo
13 COMDAT group section \[[ 0-9]+\] `.group' \[bar\] contains . sections:
15 \[[ 0-9]+\] \.text\.bar
17 \[[ 0-9]+\] \.rela?\.text\.bar