blob: 95771b7dc67497f4983d884c46fef608259bfce3 [file] [log] [blame]
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
# RUN: ld.lld -shared -rodynamic %t -o %t2
# RUN: llvm-readobj -sections -dynamic-table %t2 | FileCheck %s
.globl _start
_start:
ret
# CHECK: Section {
# CHECK: Name: .dynamic
# CHECK-NEXT: Type: SHT_DYNAMIC
# CHECK-NEXT: Flags [
# CHECK-NEXT: SHF_ALLOC
# CHECK-NEXT: ]
# CHECK: Section {
# CHECK: Name: .debug_indirect
# CHECK-NEXT: Type: SHT_PROGBITS
# CHECK-NEXT: Flags [
# CHECK-NEXT: SHF_ALLOC
# CHECK-NEXT: SHF_WRITE
# CHECK-NEXT: ]
# CHECK-NEXT: Address: 0x2000
# CHECK: DynamicSection [
# CHECK: 0x0000000070000016 unknown 0x2000