brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · 2e342a0 Raw
42 lines · plain
1// REQUIRES: x86-registered-target2// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o %t3// RUN: llvm-readelf --notes %t | FileCheck %s --check-prefix=GNU4// RUN: llvm-readobj --elf-output-style LLVM --notes %t | FileCheck %s --check-prefix=LLVM5 6// GNU:      Displaying notes found in: .note.gnu.property7// GNU-NEXT:   Owner                 Data size       Description8// GNU-NEXT:   GNU                   0x00000004      NT_GNU_PROPERTY_TYPE_0 (property note)9// GNU-NEXT:     Properties:    <corrupted GNU_PROPERTY_TYPE_0>10 11// LLVM:      NoteSections [12// LLVM-NEXT:   NoteSection {13// LLVM-NEXT:     Name: .note.gnu.property14// LLVM-NEXT:     Offset: 0x4015// LLVM-NEXT:     Size: 0x1816// LLVM-NEXT:	  Notes [17// LLVM-NEXT:		{18// LLVM-NEXT:			Owner: GNU19// LLVM-NEXT:			Data size: 0x420// LLVM-NEXT:			Type: NT_GNU_PROPERTY_TYPE_0 (property note)21// LLVM-NEXT:			Property [22// LLVM-NEXT:				<corrupted GNU_PROPERTY_TYPE_0>23// LLVM-NEXT:			]24// LLVM-NEXT:		}25// LLVM-NEXT:	  ]26// LLVM-NEXT:   }27// LLVM-NEXT: ]28 29// Section below is broken, check we report that.30 31.section ".note.gnu.property", "a"32.align 4 33  .long 4           /* Name length is always 4 ("GNU") */34  .long 4           /* Data length (corrupted) */35  .long 5           /* Type: NT_GNU_PROPERTY_TYPE_0 */36  .asciz "GNU"      /* Name */37  .p2align 338begin:39  .long 1           /* Type: GNU_PROPERTY_STACK_SIZE */40  .p2align 341end:42