brintos

brintos / llvm-project-archived public Read only

0
0
Text · 2.8 KiB · 9f06d3b Raw
98 lines · plain
1// REQUIRES: x86-registered-target2// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o %t.o3 4// RUN: llvm-readobj --notes %t.o | FileCheck %s --check-prefix=LLVM --strict-whitespace5// RUN: llvm-readelf --notes %t.o | FileCheck %s --check-prefix=GNU --strict-whitespace6 7// GNU:      Displaying notes found in: .note.version{{$}}8// GNU-NEXT:   Owner                Data size 	Description9// GNU-NEXT:   XYZ                  0x00000000	NT_VERSION (version)10// GNU-EMPTY:11// GNU-NEXT: Displaying notes found in: .note.arch{{$}}12// GNU-NEXT:   Owner                Data size 	Description13// GNU-NEXT:   XYZ                  0x00000000	NT_ARCH (architecture)14// GNU-EMPTY:15// GNU-NEXT: Displaying notes found in: .note.open{{$}}16// GNU-NEXT:   Owner                Data size 	Description17// GNU-NEXT:   XYZ                  0x00000000	OPEN18// GNU-EMPTY:19// GNU-NEXT: Displaying notes found in: .note.func{{$}}20// GNU-NEXT:   Owner                Data size 	Description21// GNU-NEXT:   XYZ                  0x00000000	func22 23// LLVM:      NoteSections [24// LLVM-NEXT:   NoteSection {25// LLVM-NEXT:     Name: .note.version26// LLVM-NEXT:     Offset: 0x4027// LLVM-NEXT:     Size: 0x1028// LLVM-NEXT:	  Notes [29// LLVM-NEXT:		{30// LLVM-NEXT:			Owner: XYZ31// LLVM-NEXT:			Data size: 0x032// LLVM-NEXT:			Type: NT_VERSION (version)33// LLVM-NEXT:		}34// LLVM-NEXT:	  ]35// LLVM-NEXT:   }36// LLVM-NEXT:   NoteSection {37// LLVM-NEXT:     Name: .note.arch38// LLVM-NEXT:     Offset: 0x5039// LLVM-NEXT:     Size: 0x1040// LLVM-NEXT:	  Notes [41// LLVM-NEXT:		{42// LLVM-NEXT:			Owner: XYZ43// LLVM-NEXT:			Data size: 0x044// LLVM-NEXT:			Type: NT_ARCH (architecture)45// LLVM-NEXT:		}46// LLVM-NEXT:	  ]47// LLVM-NEXT:   }48// LLVM-NEXT:   NoteSection {49// LLVM-NEXT:     Name: .note.open50// LLVM-NEXT:     Offset: 0x6051// LLVM-NEXT:     Size: 0x1052// LLVM-NEXT:	  Notes [53// LLVM-NEXT:		{54// LLVM-NEXT:			Owner: XYZ55// LLVM-NEXT:			Data size: 0x056// LLVM-NEXT:			Type: OPEN57// LLVM-NEXT:		}58// LLVM-NEXT:	  ]59// LLVM-NEXT:   }60// LLVM-NEXT:   NoteSection {61// LLVM-NEXT:     Name: .note.func62// LLVM-NEXT:     Offset: 0x7063// LLVM-NEXT:     Size: 0x1064// LLVM-NEXT:	  Notes [65// LLVM-NEXT:		{66// LLVM-NEXT:			Owner: XYZ67// LLVM-NEXT:			Data size: 0x068// LLVM-NEXT:			Type: func69// LLVM-NEXT:		}70// LLVM-NEXT:	 ]71// LLVM-NEXT:   }72// LLVM-NEXT: ]73 74.section ".note.version", "a"75	.align 476	.long 4 /* namesz */77	.long 0 /* descsz */78	.long 1 /* type = NT_VERSION */79	.asciz "XYZ"80.section ".note.arch", "a"81	.align 482	.long 4 /* namesz */83	.long 0 /* descsz */84	.long 2 /* type = NT_ARCH*/85	.asciz "XYZ"86.section ".note.open", "a"87	.align 488	.long 4 /* namesz */89	.long 0 /* descsz */90	.long 0x100 /* type = NT_GNU_BUILD_ATTRIBUTE_OPEN*/91	.asciz "XYZ"92.section ".note.func", "a"93	.align 494	.long 4 /* namesz */95	.long 0 /* descsz */96	.long 0x101 /* type = NT_GNU_BUILD_ATTRIBUTE_FUNC*/97	.asciz "XYZ"98