52 lines · plain
1# RUN: yaml2obj %s -o %t2# RUN: llvm-ifs --input-format=ELF --output-ifs=- %t | FileCheck %s3 4!ELF5FileHeader:6 Class: ELFCLASS647 Data: ELFDATA2LSB8 Type: ET_DYN9 Machine: EM_X86_6410Sections:11 - Name: .dynstr12 Type: SHT_STRTAB13 Flags: [ SHF_ALLOC ]14 Address: 0x100015 # "\0libfoo.so\0libbar.so\0somelib.so\0foo\0"16 Content: "006c6962666f6f2e736f006c69626261722e736f00736f6d656c69622e736f00666f6f00"17 - Name: .dynamic18 Type: SHT_DYNAMIC19 Flags: [ SHF_ALLOC ]20 Address: 0x000000000000102421 EntSize: 0x000000000000001022 Entries:23 - Tag: DT_NEEDED24 Value: 0x000000000000000125 - Tag: DT_SONAME26 Value: 0x000000000000001527 - Tag: DT_NEEDED28 Value: 0x000000000000000B29 - Tag: DT_STRSZ30 Value: 0x000000000000002431 - Tag: DT_STRTAB32 Value: 0x000000000000100033 - Tag: DT_SYMTAB34 Value: 0x000000000000100035 - Tag: DT_NULL36 Value: 0x000000000000000037ProgramHeaders:38 - Type: PT_LOAD39 Flags: [ PF_R ]40 VAddr: 0x100041 Align: 842 FirstSec: .dynstr43 LastSec: .dynamic44 - Type: PT_DYNAMIC45 Flags: [ PF_X, PF_R ]46 VAddr: 0x102447 48# CHECK: NeededLibs:49# CHECK-NEXT: - libfoo.so{{$}}50# CHECK-NEXT: - libbar.so{{$}}51# CHECK-NEXT: Symbols: []52