[llvm-dlltool] Respect NONAME keyword
[llvm-complete.git] / test / tools / llvm-elfabi / binary-read-add-soname.test
blob744fa51d0561a5db563c73368e3bf2114932c167
1 # RUN: yaml2obj %s > %t
2 # RUN: llvm-elfabi --elf %t --emit-tbe=- --soname=best.so | FileCheck %s
4 !ELF
5 FileHeader:
6   Class:           ELFCLASS64
7   Data:            ELFDATA2LSB
8   Type:            ET_DYN
9   Machine:         EM_AARCH64
10 Sections:
11   - Name:            .dynstr
12     Type:            SHT_STRTAB
13     Flags:           [ SHF_ALLOC ]
14     Address:         0x0000
15     Content:         "00"
16   - Name:            .dynamic
17     Type:            SHT_DYNAMIC
18     Flags:           [ SHF_ALLOC ]
19     Address:         0x0000000000000008
20     Link:            .dynstr
21     AddressAlign:    0x0000000000000008
22     EntSize:         0x0000000000000010
23     Entries:
24       - Tag:             DT_STRSZ
25         Value:           0x0000000000000001
26       - Tag:             DT_STRTAB
27         Value:           0x0000000000000000
28       - Tag:             DT_SYMTAB
29         Value:           0x0000000000000000
30       - Tag:             DT_NULL
31         Value:           0x0000000000000000
32 ProgramHeaders:
33   - Type: PT_LOAD
34     Flags: [ PF_R ]
35     VAddr: 0x0000
36     PAddr: 0x0000
37     Align: 8
38     Sections:
39       - Section: .dynstr
40       - Section: .dynamic
41   - Type: PT_DYNAMIC
42     Flags: [ PF_X, PF_R ]
43     VAddr: 0x0008
44     PAddr: 0x0008
45     Sections:
46       - Section: .dynamic
48 # CHECK:      --- !tapi-tbe
49 # CHECK-NEXT: TbeVersion: {{[1-9]\d*\.(0|([1-9]\d*))}}
50 # CHECK-NEXT: SoName: best.so{{$}}
51 # CHECK-NEXT: Arch: AArch64
52 # CHECK-NEXT: Symbols: {}
53 # CHECK-NEXT: ...