1 # RUN: yaml2obj %s > %t.so
2 # RUN: llvm-readobj -elf-output-style GNU --notes %t.so | FileCheck %s --check-prefix=GNU
3 # RUN: llvm-readobj -elf-output-style LLVM --notes %t.so | FileCheck %s --check-prefix=LLVM
5 # GNU: Displaying notes found at file offset 0x00000340 with length 0x00000020:
6 # GNU-NEXT: Owner Data size Description
7 # GNU-NEXT: GNU 0x00000010 NT_GNU_ABI_TAG (ABI version tag)
8 # GNU-NEXT: OS: Linux, ABI: 2.6.32
10 # GNU: Displaying notes found at file offset 0x00000360 with length 0x00000020:
11 # GNU-NEXT: Owner Data size Description
12 # GNU-NEXT: GNU 0x00000010 NT_GNU_BUILD_ID (unique build ID bitstring)
13 # GNU-NEXT: Build ID: 4fcb712aa6387724a9f465a32cd8c14b
15 # GNU: Displaying notes found at file offset 0x000003cc with length 0x0000001c:
16 # GNU-NEXT: Owner Data size Description
17 # GNU-NEXT: GNU 0x00000009 NT_GNU_GOLD_VERSION (gold version)
18 # GNU-NEXT: Version: gold 1.11
21 # LLVM-NEXT: NoteSection {
22 # LLVM-NEXT: Offset: 0x340
23 # LLVM-NEXT: Size: 0x20
25 # LLVM-NEXT: Owner: GNU
26 # LLVM-NEXT: Data size: 0x10
27 # LLVM-NEXT: Type: NT_GNU_ABI_TAG (ABI version tag)
28 # LLVM-NEXT: OS: Linux
29 # LLVM-NEXT: ABI: 2.6.32
32 # LLVM-NEXT: NoteSection {
33 # LLVM-NEXT: Offset: 0x360
34 # LLVM-NEXT: Size: 0x20
36 # LLVM-NEXT: Owner: GNU
37 # LLVM-NEXT: Data size: 0x10
38 # LLVM-NEXT: Type: NT_GNU_BUILD_ID (unique build ID bitstring)
39 # LLVM-NEXT: Build ID: 4fcb712aa6387724a9f465a32cd8c14b
42 # LLVM-NEXT: NoteSection {
43 # LLVM-NEXT: Offset: 0x3CC
44 # LLVM-NEXT: Size: 0x1C
46 # LLVM-NEXT: Owner: GNU
47 # LLVM-NEXT: Data size: 0x9
48 # LLVM-NEXT: Type: NT_GNU_GOLD_VERSION (gold version)
49 # LLVM-NEXT: Version: gold 1.11
63 AddressAlign: 0x0000000000000004
64 Content: 040000001000000001000000474E550000000000020000000600000020000000
65 - Name: .note.gnu.build-id
68 Address: 0x0000000000400120
69 AddressAlign: 0x0000000000000004
70 Content: 040000001000000003000000474E55004FCB712AA6387724A9F465A32CD8C14B
73 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
74 Address: 0x0000000000400140
75 AddressAlign: 0x0000000000000001
80 Address: 0x0000000000400148
81 AddressAlign: 0x0000000000000008
82 Content: 1400000000000000017A5200017810011B0C070890010000140000001C000000D8FFFFFF030000000000000000000000
85 Flags: [ SHF_WRITE, SHF_ALLOC ]
86 Address: 0x0000000000401000
87 AddressAlign: 0x0000000000000001
91 Flags: [ SHF_WRITE, SHF_ALLOC ]
92 Address: 0x0000000000401000
93 AddressAlign: 0x0000000000000001
96 Flags: [ SHF_MERGE, SHF_STRINGS ]
97 AddressAlign: 0x0000000000000001
98 Content: 004743433A2028474E552920352E342E3000
99 - Name: .note.gnu.gold-version
101 AddressAlign: 0x0000000000000004
102 Content: 040000000900000004000000474E5500676F6C6420312E3131000000
112 Value: 0x0000000000400140
113 Size: 0x0000000000000003
115 Value: 0x0000000000401000
117 Value: 0x0000000000401000
119 Value: 0x0000000000401000