Skip to content

Commit 88359f4

Browse files
committed
add test file for melformed object file
1 parent deaf7de commit 88359f4

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
2+
# RUN: yaml2obj %s -o %t.o
3+
# RUN: ld.lld %t.o /dev/null 2>&1 | FileCheck %s
4+
5+
# CHECK: (.ARM.attributes): invalid Extended Build Attributes subsection size at offset: 3B
6+
7+
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"

0 commit comments

Comments
 (0)