blob: 4bf79a4635f667a7dda4a09fa34d44d11770a7c2 [file] [log] [blame]
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/rodynamic.s -o %td.o
# RUN: ld.lld -shared %td.o -o %td.so
# RUN: ld.lld -rodynamic %t.o %td.so -o %t.exe
# RUN: llvm-readobj -sections -dynamic-table %t.exe | FileCheck %s
.text
.globl __start,_foo
.type _foo,@function
__start:
ret
# CHECK: Section {
# CHECK: Name: .dynamic
# CHECK-NEXT: Type: SHT_DYNAMIC
# CHECK-NEXT: Flags [
# CHECK-NEXT: SHF_ALLOC
# CHECK-NEXT: ]
# CHECK: Name: .rld_map
# CHECK-NEXT: Type: SHT_PROGBITS
# CHECK-NEXT: Flags [
# CHECK-NEXT: SHF_ALLOC
# CHECK-NEXT: SHF_WRITE
# CHECK-NEXT: ]
# CHECK-NEXT: Address: [[RLDMAPADDR:0x[0-9a-f]+]]
# CHECK: DynamicSection [
# CHECK: 0x0000000070000016 unknown [[RLDMAPADDR]]