blob: a7eca87eb3c2616d912e21db9534f363a031faec [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)
George Rimar2b884062018-03-21 08:48:44 +00008// CHECK-NEXT: Properties: <corrupted GNU_PROPERTY_TYPE_0>
George Rimar6a14c022018-03-21 08:34:55 +00009
10// Section below is broken, check we report that.
11
12.section ".note.gnu.property", "a"
13.align 4
14 .long 4 /* Name length is always 4 ("GNU") */
15 .long end - begin /* Data length */
16 .long 5 /* Type: NT_GNU_PROPERTY_TYPE_0 */
17 .asciz "GNU" /* Name */
18 .p2align 3
19begin:
20 .long 1 /* Type: GNU_PROPERTY_STACK_SIZE */
21end: