3 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
4 # RUN: ld.lld %t -o %t2 --gc-sections -shared
5 # RUN: llvm-readobj --sections --section-data %t2 | FileCheck %s
7 # Non alloca section .bar should not keep section .foo alive.
9 # CHECK-NOT: Name: .foo
12 # CHECK-NEXT: Type: SHT_PROGBITS
15 # CHECK-NEXT: Address:
20 # CHECK-NEXT: AddressAlignment:
21 # CHECK-NEXT: EntrySize:
22 # CHECK-NEXT: SectionData (
23 # CHECK-NEXT: 0000: 00000000 00000000 |