1 ## Check that a malformed NT_GNU_ABI_TAG note can be dumped without crashing.
2 # RUN: yaml2obj %s -o %t
3 # RUN: llvm-readelf --notes %t | FileCheck %s --check-prefix=GNU
4 # RUN: llvm-readobj --elf-output-style LLVM --notes %t | FileCheck %s --check-prefix=LLVM
5 ## GNU binutils does not print the raw description data when encountering an
6 ## invalid NT_GNU_ABI_TAG, but in LLVM style we print it.
8 # GNU: Displaying notes found in: .note.ABI-tag
9 # GNU-NEXT: Owner Data size Description
10 # GNU-NEXT: GNU 0x00000004 NT_GNU_ABI_TAG (ABI version tag)
11 # GNU-NEXT: <corrupt GNU_ABI_TAG>
14 # LLVM: NoteSections [
15 # LLVM-NEXT: NoteSection {
16 # LLVM-NEXT: Name: .note.ABI-tag
18 # LLVM-NEXT: Size: 0x14
21 # LLVM-NEXT: Owner: GNU
22 # LLVM-NEXT: Data size: 0x4
23 # LLVM-NEXT: Type: NT_GNU_ABI_TAG (ABI version tag)
24 # LLVM-NEXT: ABI: <corrupt GNU_ABI_TAG>
25 # LLVM-NEXT: Description data (
26 # LLVM-NEXT: 0000: 00000000 |....|
41 AddressAlign: 0x0000000000000004
42 Content: 040000000400000001000000474E550000000000