1# RUN: yaml2obj %s -o %t 2# RUN: llvm-readobj --sections %t | FileCheck %s 3 4## Check yaml2obj does not ignore the address of the 5## explicitly listed .dynstr, .dynsym, .strtab 6## and .symtab sections. 7 8# CHECK: Name: .dynstr 9# CHECK-NEXT: Type: SHT_STRTAB 10# CHECK-NEXT: Flags [ 11# CHECK-NEXT: SHF_ALLOC 12# CHECK-NEXT: ] 13# CHECK-NEXT: Address: 0x1000 14 15# CHECK: Name: .dynsym 16# CHECK-NEXT: Type: SHT_DYNSYM 17# CHECK-NEXT: Flags [ 18# CHECK-NEXT: SHF_ALLOC 19# CHECK-NEXT: ] 20# CHECK-NEXT: Address: 0x2000 21 22# CHECK: Name: .strtab 23# CHECK-NEXT: Type: SHT_STRTAB 24# CHECK-NEXT: Flags [ 25# CHECK-NEXT: ] 26# CHECK-NEXT: Address: 0x3000 27 28# CHECK: Name: .symtab 29# CHECK-NEXT: Type: SHT_SYMTAB 30# CHECK-NEXT: Flags [ 31# CHECK-NEXT: ] 32# CHECK-NEXT: Address: 0x4000 33 34!ELF 35FileHeader: 36 Class: ELFCLASS64 37 Data: ELFDATA2LSB 38 Type: ET_DYN 39Sections: 40 - Name: .dynstr 41 Type: SHT_STRTAB 42 Flags: [ SHF_ALLOC ] 43 Address: 0x1000 44 - Name: .dynsym 45 Type: SHT_DYNSYM 46 Flags: [ SHF_ALLOC ] 47 Address: 0x2000 48 - Name: .strtab 49 Type: SHT_STRTAB 50 Address: 0x3000 51 - Name: .symtab 52 Type: SHT_SYMTAB 53 Address: 0x4000 54DynamicSymbols: [] 55