Revert r354244 "[DAGCombiner] Eliminate dead stores to stack."
[llvm-complete.git] / test / tools / llvm-readobj / gnu-notes.test
blob21078231f19f83104eadc74df220961b672da8cb
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
20 # LLVM:      Notes [
21 # LLVM-NEXT:   NoteSection {
22 # LLVM-NEXT:     Offset: 0x340
23 # LLVM-NEXT:     Size: 0x20
24 # LLVM-NEXT:     Note {
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
30 # LLVM-NEXT:     }
31 # LLVM-NEXT:   }
32 # LLVM-NEXT:   NoteSection {
33 # LLVM-NEXT:     Offset: 0x360
34 # LLVM-NEXT:     Size: 0x20
35 # LLVM-NEXT:     Note {
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
40 # LLVM-NEXT:     }
41 # LLVM-NEXT:   }
42 # LLVM-NEXT:   NoteSection {
43 # LLVM-NEXT:     Offset: 0x3CC
44 # LLVM-NEXT:     Size: 0x1C
45 # LLVM-NEXT:     Note {
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
50 # LLVM-NEXT:     }
51 # LLVM-NEXT:   }
52 # LLVM-NEXT: ]
54 --- !ELF
55 FileHeader:
56   Class:           ELFCLASS64
57   Data:            ELFDATA2LSB
58   Type:            ET_EXEC
59   Machine:         EM_X86_64
60 Sections:
61   - Name:            .note.ABI-tag
62     Type:            SHT_NOTE
63     AddressAlign:    0x0000000000000004
64     Content:         040000001000000001000000474E550000000000020000000600000020000000
65   - Name:            .note.gnu.build-id
66     Type:            SHT_NOTE
67     Flags:           [ SHF_ALLOC ]
68     Address:         0x0000000000400120
69     AddressAlign:    0x0000000000000004
70     Content:         040000001000000003000000474E55004FCB712AA6387724A9F465A32CD8C14B
71   - Name:            .text
72     Type:            SHT_PROGBITS
73     Flags:           [ SHF_ALLOC, SHF_EXECINSTR ]
74     Address:         0x0000000000400140
75     AddressAlign:    0x0000000000000001
76     Content:         31C0C3
77   - Name:            .eh_frame
78     Type:            SHT_PROGBITS
79     Flags:           [ SHF_ALLOC ]
80     Address:         0x0000000000400148
81     AddressAlign:    0x0000000000000008
82     Content:         1400000000000000017A5200017810011B0C070890010000140000001C000000D8FFFFFF030000000000000000000000
83   - Name:            .data
84     Type:            SHT_PROGBITS
85     Flags:           [ SHF_WRITE, SHF_ALLOC ]
86     Address:         0x0000000000401000
87     AddressAlign:    0x0000000000000001
88     Content:         ''
89   - Name:            .bss
90     Type:            SHT_NOBITS
91     Flags:           [ SHF_WRITE, SHF_ALLOC ]
92     Address:         0x0000000000401000
93     AddressAlign:    0x0000000000000001
94   - Name:            .comment
95     Type:            SHT_PROGBITS
96     Flags:           [ SHF_MERGE, SHF_STRINGS ]
97     AddressAlign:    0x0000000000000001
98     Content:         004743433A2028474E552920352E342E3000
99   - Name:            .note.gnu.gold-version
100     Type:            SHT_NOTE
101     AddressAlign:    0x0000000000000004
102     Content:         040000000900000004000000474E5500676F6C6420312E3131000000
103 Symbols:
104   Local:
105     - Name:            reduced.c
106       Type:            STT_FILE
107     - Type:            STT_FILE
108   Global:
109     - Name:            main
110       Type:            STT_FUNC
111       Section:         .text
112       Value:           0x0000000000400140
113       Size:            0x0000000000000003
114     - Name:            _edata
115       Value:           0x0000000000401000
116     - Name:            __bss_start
117       Value:           0x0000000000401000
118     - Name:            _end
119       Value:           0x0000000000401000