1 ## Check we are able to dump library soname properly.
3 # RUN: yaml2obj %s -o %t.o
4 # RUN: llvm-readobj %t.o | FileCheck %s --check-prefix LLVM
5 # RUN: llvm-readelf --dynamic-table %t.o | FileCheck %s --check-prefix GNU
7 # LLVM: Format: ELF64-x86-64
8 # LLVM-NEXT: Arch: x86_64
9 # LLVM-NEXT: AddressSize: 64bit
10 # LLVM-NEXT: LoadName: test.so
12 # GNU: Dynamic section at offset 0x200 contains 4 entries:
13 # GNU-NEXT: Tag Type Name/Value
14 # GNU-NEXT: 0x0000000000000005 (STRTAB) 0x0
15 # GNU-NEXT: 0x000000000000000a (STRSZ) 7 (bytes)
16 # GNU-NEXT: 0x000000000000000e (SONAME) Library soname: [test.so]
17 # GNU-NEXT: 0x0000000000000000 (NULL) 0x0
29 Content: '746573742e736f00' ## "test.so"
36 Value: 0x0000000000000000
38 Value: 0x0000000000000007
40 Value: 0x0000000000000000
42 Value: 0x0000000000000000