31 lines · plain
1# REQUIRES: x862 3# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t4# RUN: ld.lld -shared --gc-sections -o %t1 %t5# RUN: llvm-readelf --file-headers --symbols %t16# | FileCheck %s7# CHECK: Entry point address: 0x10008# CHECK: 0000000000001000 0 FUNC LOCAL HIDDEN 4 _start9# CHECK: 0000000000001006 0 FUNC LOCAL HIDDEN 4 internal10# CHECK: 0000000000001005 0 FUNC GLOBAL DEFAULT 4 foobar11 12.section .text.start,"ax"13.globl _start14.type _start,%function15.hidden _start16_start:17 jmp internal18 19.section .text.foobar,"ax"20.globl foobar21.type foobar,%function22foobar:23 ret24 25.section .text.internal,"ax"26.globl internal27.hidden internal28.type internal,%function29internal:30 ret31