forked from OSchip/llvm-project
41 lines
961 B
YAML
41 lines
961 B
YAML
# RUN: yaml2obj %s -o %t
|
|
# RUN: llvm-readobj -sections %t | FileCheck %s
|
|
|
|
## Check yaml2obj does not ignore the address of the
|
|
## explicitly listed .dynstr and .dynsym sections.
|
|
|
|
# CHECK: Name: .dynstr
|
|
# CHECK-NEXT: Type: SHT_STRTAB
|
|
# CHECK-NEXT: Flags [
|
|
# CHECK-NEXT: SHF_ALLOC
|
|
# CHECK-NEXT: ]
|
|
# CHECK-NEXT: Address: 0x1000
|
|
|
|
# CHECK: Name: .dynsym
|
|
# CHECK-NEXT: Type: SHT_DYNSYM
|
|
# CHECK-NEXT: Flags [
|
|
# CHECK-NEXT: SHF_ALLOC
|
|
# CHECK-NEXT: ]
|
|
# CHECK-NEXT: Address: 0x2000
|
|
|
|
!ELF
|
|
FileHeader:
|
|
Class: ELFCLASS64
|
|
Data: ELFDATA2LSB
|
|
Type: ET_DYN
|
|
Machine: EM_X86_64
|
|
Sections:
|
|
- Name: .dynstr
|
|
Type: SHT_STRTAB
|
|
Flags: [ SHF_ALLOC ]
|
|
Address: 0x1000
|
|
EntSize: 0x1
|
|
- Name: .dynsym
|
|
Type: SHT_DYNSYM
|
|
Flags: [ SHF_ALLOC ]
|
|
Address: 0x2000
|
|
EntSize: 0x18
|
|
DynamicSymbols:
|
|
Global:
|
|
- Name: foo
|