Home | History | Annotate | Download | only in llvm-readobj
      1 // 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:  <corrupted GNU_PROPERTY_TYPE_0>
      9 
     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
     19 begin:
     20   .long 1           /* Type: GNU_PROPERTY_STACK_SIZE */
     21 end:
     22