Debian Codegraph @

llvm/test/tools/llvm-readobj/ELF/AArch64/build-attributes-melformed-short.s

raw
1 # RUN: yaml2obj %s -o %t.o
2 # RUN: not llvm-readobj --arch-specific %t.o %null 2>&1 | FileCheck %s
3
4 # CHECK: unable to dump attributes from the Unknown section with index 1: invalid Extended Build Attributes subsection size at offset: 3B
5
6 # Indicated size is shorter than actual size.
7 # The size is indicated by the '20' in the sequence '...0101020120...' should be 23
8 --- !ELF
9 FileHeader:
10 Class: ELFCLASS64
11 Data: ELFDATA2LSB
12 OSABI: ELFOSABI_NONE
13 Type: ET_REL
14 Machine: EM_AARCH64
15 Entry: 0x0
16
17 Sections:
18 - Name: .ARM.attributes
19 Type: 0x70000003 # SHT_LOPROC + 3
20 AddressAlign: 1
21 Offset: 0x40
22 Size: 0x41
23 Content: "411900000061656162695f7061757468616269000000010102012000000061656162695f666561747572655f616e645f6269747300010000010101020000"
24 ...