1// REQUIRES: x86 2// RUN: llvm-mc %s -o %t.o -filetype=obj -triple=x86_64-pc-linux 3// RUN: ld.lld %t.o -o %t.so -shared --gc-sections 4// RUN: llvm-readobj -S %t.so | FileCheck %s 5 6// CHECK: Name: .text 7// CHECK-NEXT: Type: SHT_PROGBITS 8// CHECK-NEXT: Flags [ 9// CHECK-NEXT: SHF_ALLOC 10// CHECK-NEXT: SHF_EXECINSTR 11// CHECK-NEXT: ] 12// CHECK-NEXT: Address: 13// CHECK-NEXT: Offset: 14// CHECK-NEXT: Size: 1 15 16.protected g 17.globl g 18g: 19retq 20