forked from OSchip/llvm-project
20 lines
439 B
ArmAsm
20 lines
439 B
ArmAsm
// REQUIRES: x86
|
|
// 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
|