blob: 4245d19d7961dc6ffddb6afdba6f262e482a55b2 [file] [log] [blame]
Armando Montanez56d18122019-01-18 20:56:03 +00001# RUN: yaml2obj %s -o %t
2# RUN: llvm-elfabi --elf %t --emit-tbe=- | FileCheck %s
3
4!ELF
5FileHeader:
6 Class: ELFCLASS64
7 Data: ELFDATA2LSB
8 Type: ET_DYN
9 Machine: EM_X86_64
10Sections:
11 - Name: .dynstr
12 Type: SHT_STRTAB
13 Flags: [ SHF_ALLOC ]
14 Address: 0x1000
15 # "\0libfoo.so\0libbar.so\0somelib.so\0foo\0"
16 Content: "006c6962666f6f2e736f006c69626261722e736f00736f6d656c69622e736f00666f6f00"
17 - Name: .dynamic
18 Type: SHT_DYNAMIC
19 Flags: [ SHF_ALLOC ]
20 Address: 0x1024
21 Content: "010000000000000001000000000000000e00000000000000150000000000000001000000000000000b000000000000000a0000000000000024000000000000000500000000000000001000000000000000000000000000000000000000000000"
22 # DT_NEEDED 1 (0x01)
23 # DT_SONAME 21 (0x15)
24 # DT_NEEDED 11 (0x0b)
25 # DT_STRSZ 36 (0x24)
26 # DT_STRTAB 0x1000
27 # DT_NULL 0x0
28 Size: 96
29ProgramHeaders:
30 - Type: PT_LOAD
31 Flags: [ PF_R ]
32 VAddr: 0x1000
33 PAddr: 0x1000
34 Align: 8
35 Sections:
36 - Section: .dynstr
37 - Section: .dynamic
38 - Type: PT_DYNAMIC
39 Flags: [ PF_X, PF_R ]
40 VAddr: 0x1024
41 PAddr: 0x1024
42 Sections:
43
44# CHECK: NeededLibs:
45# CHECK-NEXT: - libfoo.so{{$}}
46# CHECK-NEXT: - libbar.so{{$}}
47# CHECK-NEXT: Symbols: {}