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 Unknown note type
: (0x00000003)
10 // GNU-NEXT
: Displaying notes found at file offset
0x00000050 with length
0x0000002c:
11 // GNU-NEXT
: Owner Data size Description
12 // GNU-NEXT
: XYZ
0x0000001c Unknown note type
: (0x00000003)
13 // GNU-NEXT
: description data
: 4c
6f
72 65 6d
20 69 70 73 75 6d
20 64 6f
6c
6f
72 20 73 69 74 20 61 6d
65 74 00 00
16 // LLVM-NEXT
: NoteSection
{
17 // LLVM-NEXT
: Offset
: 0x40
18 // LLVM-NEXT
: Size
: 0x10
20 // LLVM-NEXT
: Owner
: XYZ
21 // LLVM-NEXT
: Data size
: 0x0
22 // LLVM-NEXT
: Type
: Unknown
(0x00000003)
25 // LLVM-NEXT
: NoteSection
{
26 // LLVM-NEXT
: Offset
: 0x50
27 // LLVM-NEXT
: Size
: 0x2C
29 // LLVM-NEXT
: Owner
: XYZ
30 // LLVM-NEXT
: Data size
: 0x1C
31 // LLVM-NEXT
: Type
: Unknown
(0x00000003)
32 // LLVM-NEXT
: Description data
(
33 // LLVM-NEXT
: 0000: 4C6F7265
6D206970
73756D20
646F6C6F |Lorem ipsum dolo|
34 // LLVM-NEXT
: 0010: 72207369 7420616D
65740000 |r sit amet.
.|
40 .section ".note.foo", "a"
46 .section ".note.bar", "a"
49 .long end - begin /* descsz */
53 .asciz "Lorem ipsum dolor sit amet"