aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-elf/retain6a.d
blob: c8a47d58c0aa7da9a373b00d1e4c22aceec662de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#name: SHF_GNU_RETAIN 6a (pull section out of lib required by SHF_GNU_RETAIN section)
#source: retain6main.s
#ld: --gc-sections -e _start -u bar -Ltmpdir -lretain6
#notarget: ![supports_gnu_osabi] ![check_gc_sections_available]
#DUMPPROG: nm

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