// REQUIRES: x86-registered-target
// RUN: llvm-mc -filetype=obj -triple x86_64-pc-linux-gnu %s -o %t.o
// RUN: llvm-readobj --notes %t.o | FileCheck %s --check-prefix=LLVM --strict-whitespace
// RUN: llvm-readelf --notes %t.o | FileCheck %s --check-prefix=GNU --strict-whitespace
// GNU: Displaying notes found in: .note.version{{$}}
// GNU-NEXT: Owner Data size Description
// GNU-NEXT: XYZ 0x00000000
// GNU-EMPTY:
// GNU-NEXT: Displaying notes found in: .note.arch{{$}}
// GNU-NEXT: Owner Data size Description
// GNU-NEXT: XYZ 0x00000000
// GNU-EMPTY:
// GNU-NEXT: Displaying notes found in: .note.open{{$}}
// GNU-NEXT: Owner Data size Description
// GNU-NEXT: XYZ 0x00000000 OPEN
// GNU-EMPTY:
// GNU-NEXT: Displaying notes found in: .note.func{{$}}
// GNU-NEXT: Owner Data size Description
// GNU-NEXT: XYZ 0x00000000 func
// LLVM: Notes
.section ".note.version", "a"
.align 4
.long 4 /* namesz */
.long 0 /* descsz */
.long 1 /* type = NT_VERSION */
.asciz "XYZ"
.section ".note.arch", "a"
.align 4
.long 4 /* namesz */
.long 0 /* descsz */
.long 2 /* type = NT_ARCH*/
.asciz "XYZ"
.section ".note.open", "a"
.align 4
.long 4 /* namesz */
.long 0 /* descsz */
.long 0x100 /* type = NT_GNU_BUILD_ATTRIBUTE_OPEN*/
.asciz "XYZ"
.section ".note.func", "a"
.align 4
.long 4 /* namesz */
.long 0 /* descsz */
.long 0x101 /* type = NT_GNU_BUILD_ATTRIBUTE_FUNC*/
.asciz "XYZ"