blob: fe6be0c9bcb5542d8211b5f680936f48810489ca [file] [log] [blame]
George Rimar6a14c022018-03-21 08:34:55 +00001// REQUIRES: x86-registered-target
2// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o %t
3// RUN: llvm-readobj -elf-output-style GNU --notes %t | FileCheck %s
4
5// CHECK: Displaying notes found at file offset 0x00000040 with length 0x00000014:
6// CHECK-NEXT: Owner Data size Description
7// CHECK-NEXT: GNU 0x00000004 NT_GNU_PROPERTY_TYPE_0 (property note)
8// CHECK-NEXT: Properties:
9// CHECK-NEXT: <corrupted GNU_PROPERTY_TYPE_0>
10
11// Section below is broken, check we report that.
12
13.section ".note.gnu.property", "a"
14.align 4
15 .long 4 /* Name length is always 4 ("GNU") */
16 .long end - begin /* Data length */
17 .long 5 /* Type: NT_GNU_PROPERTY_TYPE_0 */
18 .asciz "GNU" /* Name */
19 .p2align 3
20begin:
21 .long 1 /* Type: GNU_PROPERTY_STACK_SIZE */
22end: