Skip to content

Commit 20760a9

Browse files
committed
change test file from using yaml to using .section notations
1 parent afca83d commit 20760a9

File tree

1 file changed

+13
-20
lines changed

1 file changed

+13
-20
lines changed
Lines changed: 13 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,16 @@
1-
2-
# RUN: yaml2obj %s -o %t.o
1+
# RUN: llvm-mc -triple=aarch64 -filetype=obj %s -o %t.o
32
# RUN: ld.lld %t.o /dev/null 2>&1 | FileCheck %s
43

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
4+
# CHECK: (.ARM.attributes): invalid Extended Build Attributes subsection size at offset: 39
165

17-
Sections:
18-
- Name: .ARM.attributes
19-
Type: 0x70000003 # SHT_LOPROC + 3
20-
AddressAlign: 1
21-
Offset: 0x40
22-
Size: 0x41
23-
Content: "411900000061656162695f7061757468616269000000010102012000000061656162695f666561747572655f616e645f6269747300010000010101020000"
6+
.section .ARM.attributes,"",%0x70000003
7+
.byte 0x41 // Tag 'A' (format version)
8+
.long 0x00000019 // Subsection length
9+
.asciz "aeabi_pauthabi" // Subsection name
10+
.byte 0x00, 0x00 // Optionality and Type
11+
.byte 0x01, 0x01, 0x02, 0x01 // PAuth_Platform and PAuth_Schema
12+
.long 0x00000023 // Subsection length
13+
.asciz "aeabi_feature_and_bits" // Subsection name
14+
.byte 0x01, 0x00 // Optionality and Type
15+
.byte 0x00, 0x01, 0x01, 0x01, 0x02, 0x01 // BTI, PAC, GCS
16+
.byte 0x00, 0x00 // This is the malformation, data is too long.

0 commit comments

Comments
 (0)