summaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elf/retain3.d
blob: 3c81a88e510b9bb7cc21ee8b1929baead804ffd0 (plain)
1
2
3
4
5
6
7
8
9
10
11
#name: SHF_GNU_RETAIN 3 (keep sections referenced by retained sections)
#source: retain3.s
#ld: -e _start --gc-sections
#notarget: ![supports_gnu_osabi] ![check_gc_sections_available]
#DUMPPROG: nm

#...
[0-9a-f]+ . bar
#...
[0-9a-f]+ . foo
#pass