1 ## Check we are able to produce a valid SHT_GNU_versym
2 ## section from its description.
4 # RUN: yaml2obj --docnum=1 %s -o %t1
5 # RUN: llvm-readobj -V %t1 | FileCheck %s
7 # CHECK: Version symbols [
9 # CHECK-NEXT: Version: 0
12 # CHECK-NEXT: Symbol {
13 # CHECK-NEXT: Version: 3
14 # CHECK-NEXT: Name: f1@v1
16 # CHECK-NEXT: Symbol {
17 # CHECK-NEXT: Version: 4
18 # CHECK-NEXT: Name: f2@v2
21 # CHECK-NEXT: SHT_GNU_verdef {
23 # CHECK-NEXT: SHT_GNU_verneed {
24 # CHECK-NEXT: Dependency {
25 # CHECK-NEXT: Version: 1
26 # CHECK-NEXT: Count: 2
27 # CHECK-NEXT: FileName: dso.so.0
28 # CHECK-NEXT: Entries [
30 # CHECK-NEXT: Hash: 1937
31 # CHECK-NEXT: Flags: 0x0
32 # CHECK-NEXT: Index: 3
33 # CHECK-NEXT: Name: v1
36 # CHECK-NEXT: Hash: 1938
37 # CHECK-NEXT: Flags: 0x0
38 # CHECK-NEXT: Index: 4
39 # CHECK-NEXT: Name: v2
51 Entry: 0x0000000000201000
56 Address: 0x0000000000200210
58 AddressAlign: 0x0000000000000002
59 EntSize: 0x0000000000000002
61 - Name: .gnu.version_r
64 Address: 0x0000000000200250
66 AddressAlign: 0x0000000000000004
67 Info: 0x0000000000000001
87 ## Check we are able to set custom sh_entsize field for SHT_GNU_versym section.
89 # RUN: yaml2obj --docnum=2 %s -o %t2
90 # RUN: llvm-readelf -S %t2 | FileCheck %s --check-prefix=ENTSIZE
92 # ENTSIZE: Section Headers:
93 # ENTSIZE: [Nr] Name Type Address Off Size ES
94 # ENTSIZE: [ 1] .gnu.version VERSYM 0000000000000000 000040 000000 03
100 OSABI: ELFOSABI_FREEBSD
106 EntSize: 0x0000000000000003