Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lld / test / ELF / gc-sections-protected.s
blob7bc34429d043e1f22243824b97feae2c18196f62
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
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
16 .protected g
17 .globl g
19 retq