blob: 1a9c7e304b111336baf310339626b1e6fd568438 [file] [log] [blame]
Saleem Abdulrasool6a405442016-08-30 18:52:02 +00001# RUN: yaml2obj %s > %t.so
2# RUN: llvm-readobj -elf-output-style GNU --notes %t.so | FileCheck %s
3
4# CHECK: Displaying notes found at file offset 0x00000300 with length 0x00000020:
5# CHECK: Owner Data size Description
6# CHECK: GNU 0x00000010 NT_GNU_BUILD_ID (unique build ID bitstring)
7# CHECK: Build ID: 4fcb712aa6387724a9f465a32cd8c14b
8
9# CHECK: Displaying notes found at file offset 0x0000036c with length 0x0000001c:
10# CHECK: Owner Data size Description
11# CHECK: GNU 0x00000009 NT_GNU_GOLD_VERSION (gold version)
12# CHECK: Version: gold 1.11
13
14--- !ELF
15FileHeader:
16 Class: ELFCLASS64
17 Data: ELFDATA2LSB
18 Type: ET_EXEC
19 Machine: EM_X86_64
20Sections:
21 - Name: .note.gnu.build-id
22 Type: SHT_NOTE
23 Flags: [ SHF_ALLOC ]
24 Address: 0x0000000000400120
25 AddressAlign: 0x0000000000000004
26 Content: 040000001000000003000000474E55004FCB712AA6387724A9F465A32CD8C14B
27 - Name: .text
28 Type: SHT_PROGBITS
29 Flags: [ SHF_ALLOC, SHF_EXECINSTR ]
30 Address: 0x0000000000400140
31 AddressAlign: 0x0000000000000001
32 Content: 31C0C3
33 - Name: .eh_frame
34 Type: SHT_PROGBITS
35 Flags: [ SHF_ALLOC ]
36 Address: 0x0000000000400148
37 AddressAlign: 0x0000000000000008
38 Content: 1400000000000000017A5200017810011B0C070890010000140000001C000000D8FFFFFF030000000000000000000000
39 - Name: .data
40 Type: SHT_PROGBITS
41 Flags: [ SHF_WRITE, SHF_ALLOC ]
42 Address: 0x0000000000401000
43 AddressAlign: 0x0000000000000001
44 Content: ''
45 - Name: .bss
46 Type: SHT_NOBITS
47 Flags: [ SHF_WRITE, SHF_ALLOC ]
48 Address: 0x0000000000401000
49 AddressAlign: 0x0000000000000001
50 - Name: .comment
51 Type: SHT_PROGBITS
52 Flags: [ SHF_MERGE, SHF_STRINGS ]
53 AddressAlign: 0x0000000000000001
54 Content: 004743433A2028474E552920352E342E3000
55 - Name: .note.gnu.gold-version
56 Type: SHT_NOTE
57 AddressAlign: 0x0000000000000004
58 Content: 040000000900000004000000474E5500676F6C6420312E3131000000
59Symbols:
60 Local:
61 - Name: reduced.c
62 Type: STT_FILE
63 - Type: STT_FILE
64 Global:
65 - Name: main
66 Type: STT_FUNC
67 Section: .text
68 Value: 0x0000000000400140
69 Size: 0x0000000000000003
70 - Name: _edata
71 Value: 0x0000000000401000
72 - Name: __bss_start
73 Value: 0x0000000000401000
74 - Name: _end
75 Value: 0x0000000000401000
76...