1 #name: --gc-sections with KEEP 2 #source: dummy.s 3 #ld: --gc-sections -T pr14265.t -e 0 tmpdir/pr14265.o 4 #nm: --format=bsd --numeric-sort 5 6 #... 7 [0-9a-f]+[ ]A[ ]_*foo1_start 8 #... 9 [0-9a-f]+[ ]D[ ]_*foo1 10 #... 11 [0-9a-f]+[ ]A[ ]_*foo1_end 12 [0-9a-f]+[ ][dD][ ]_*foo2_start 13 [0-9a-f]+[ ]D[ ]_*foo2 14 [0-9a-f]+[ ][dD][ ]_*foo2_end 15 #... 16