3 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
4 # RUN: ld.lld -shared --gc-sections -o %t1 %t
5 # RUN: llvm-readelf --file-headers --symbols %t1
7 # CHECK: Entry point address: 0x1000
8 # CHECK: 0000000000001000 0 FUNC LOCAL HIDDEN 4 _start
9 # CHECK: 0000000000001006 0 FUNC LOCAL HIDDEN 4 internal
10 # CHECK: 0000000000001005 0 FUNC GLOBAL DEFAULT 4 foobar
12 .section .text.start,"ax"
14 .type _start,%function
19 .section .text.foobar,"ax"
21 .type foobar,%function
25 .section .text.internal,"ax"
28 .type internal,%function