1 // REQUIRES
: x86-registered-target
2 // RUN
: llvm-mc
-filetype
=obj
-triple x86_64-pc-linux-gnu
%s
-o
%t.o
4 // RUN
: llvm-readobj
--notes
%t.o | FileCheck
%s
--check-prefix
=LLVM
5 // RUN
: llvm-readelf
--notes
%t.o | FileCheck
%s
--check-prefix
=GNU
7 // GNU
: Displaying notes found at file offset
0x00000040 with length
0x00000010:
8 // GNU-NEXT
: Owner Data size Description
9 // GNU-NEXT
: XYZ
0x00000000 NT_VERSION
(version
)
11 // GNU
: Displaying notes found at file offset
0x00000050 with length
0x00000010:
12 // GNU-NEXT
: Owner Data size Description
13 // GNU-NEXT
: XYZ
0x00000000 NT_ARCH
(architecture
)
15 // GNU
: Displaying notes found at file offset
0x00000060 with length
0x00000010:
16 // GNU-NEXT
: Owner Data size Description
17 // GNU-NEXT
: XYZ
0x00000000 OPEN
19 // GNU
: Displaying notes found at file offset
0x00000070 with length
0x00000010:
20 // GNU-NEXT
: Owner Data size Description
21 // GNU-NEXT
: XYZ
0x00000000 func
24 // LLVM-NEXT
: NoteSection
{
25 // LLVM-NEXT
: Offset
: 0x40
26 // LLVM-NEXT
: Size
: 0x10
28 // LLVM-NEXT
: Owner
: XYZ
29 // LLVM-NEXT
: Data size
: 0x0
30 // LLVM-NEXT
: Type
: NT_VERSION
(version
)
33 // LLVM-NEXT
: NoteSection
{
34 // LLVM-NEXT
: Offset
: 0x50
35 // LLVM-NEXT
: Size
: 0x10
37 // LLVM-NEXT
: Owner
: XYZ
38 // LLVM-NEXT
: Data size
: 0x0
39 // LLVM-NEXT
: Type
: NT_ARCH
(architecture
)
42 // LLVM-NEXT
: NoteSection
{
43 // LLVM-NEXT
: Offset
: 0x60
44 // LLVM-NEXT
: Size
: 0x10
46 // LLVM-NEXT
: Owner
: XYZ
47 // LLVM-NEXT
: Data size
: 0x0
48 // LLVM-NEXT
: Type
: OPEN
51 // LLVM-NEXT
: NoteSection
{
52 // LLVM-NEXT
: Offset
: 0x70
53 // LLVM-NEXT
: Size
: 0x10
55 // LLVM-NEXT
: Owner
: XYZ
56 // LLVM-NEXT
: Data size
: 0x0
57 // LLVM-NEXT
: Type
: func
62 .section ".note.version", "a"
66 .long 1 /* type = NT_VERSION */
68 .section ".note.arch", "a"
72 .long 2 /* type = NT_ARCH*/
74 .section ".note.open", "a"
78 .long 0x100 /* type = NT_GNU_BUILD_ATTRIBUTE_OPEN*/
80 .section ".note.func", "a"
84 .long 0x101 /* type = NT_GNU_BUILD_ATTRIBUTE_FUNC*/