[Alignment][NFC] Instructions::getLoadStoreAlignment
[llvm-complete.git] / test / tools / llvm-readobj / note-unknown.s
blob632db2880ea35258d96471aa8e551c3abd3820d5
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
15 // LLVM: Notes [
16 // LLVM-NEXT: NoteSection {
17 // LLVM-NEXT: Offset: 0x40
18 // LLVM-NEXT: Size: 0x10
19 // LLVM-NEXT: Note {
20 // LLVM-NEXT: Owner: XYZ
21 // LLVM-NEXT: Data size: 0x0
22 // LLVM-NEXT: Type: Unknown (0x00000003)
23 // LLVM-NEXT: }
24 // LLVM-NEXT: }
25 // LLVM-NEXT: NoteSection {
26 // LLVM-NEXT: Offset: 0x50
27 // LLVM-NEXT: Size: 0x2C
28 // LLVM-NEXT: Note {
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..|
35 // LLVM-NEXT: )
36 // LLVM-NEXT: }
37 // LLVM-NEXT: }
38 // LLVM-NEXT: ]
40 .section ".note.foo", "a"
41 .align 4
42 .long 4 /* namesz */
43 .long 0 /* descsz */
44 .long 3 /* type */
45 .asciz "XYZ"
46 .section ".note.bar", "a"
47 .align 4
48 .long 4 /* namesz */
49 .long end - begin /* descsz */
50 .long 3 /* type */
51 .asciz "XYZ"
52 begin:
53 .asciz "Lorem ipsum dolor sit amet"
54 .align 4
55 end: