19 lines
422 B
ArmAsm
19 lines
422 B
ArmAsm
// RUN: llvm-mc %s -o %t.o -filetype=obj -triple=x86_64-pc-linux
|
|
// RUN: ld.lld %t.o -o %t.so -shared --gc-sections
|
|
// RUN: llvm-readobj -s %t.so | FileCheck %s
|
|
|
|
// CHECK: Name: .text
|
|
// CHECK-NEXT: Type: SHT_PROGBITS
|
|
// CHECK-NEXT: Flags [
|
|
// CHECK-NEXT: SHF_ALLOC
|
|
// CHECK-NEXT: SHF_EXECINSTR
|
|
// CHECK-NEXT: ]
|
|
// CHECK-NEXT: Address:
|
|
// CHECK-NEXT: Offset:
|
|
// CHECK-NEXT: Size: 1
|
|
|
|
.protected g
|
|
.globl g
|
|
g:
|
|
retq
|