[lld][ELF] Add tests for bad subsection length in .ARM.attributes
Differential revision: https://reviews.llvm.org/D63191 llvm-svn: 363261
This commit is contained in:
parent
407c8f1f49
commit
0eb763c559
|
@ -0,0 +1,8 @@
|
||||||
|
# REQUIRES: arm
|
||||||
|
# RUN: llvm-mc -filetype=obj -triple=arm-unknown-linux %s -o %t
|
||||||
|
# RUN: ld.lld %t -o /dev/null 2>&1 | FileCheck %s
|
||||||
|
|
||||||
|
# CHECK: invalid subsection length 0 at offset 1
|
||||||
|
|
||||||
|
.section .ARM.attributes,"a",%0x70000003
|
||||||
|
.quad 0
|
|
@ -0,0 +1,8 @@
|
||||||
|
# REQUIRES: arm
|
||||||
|
# RUN: llvm-mc -filetype=obj -triple=arm-unknown-linux %s -o %t
|
||||||
|
# RUN: ld.lld %t -o /dev/null 2>&1 | FileCheck %s
|
||||||
|
|
||||||
|
# CHECK: invalid subsection length 4294967295 at offset 1
|
||||||
|
|
||||||
|
.section .ARM.attributes,"a",%0x70000003
|
||||||
|
.byte 0, 0xFF, 0xFF, 0xFF, 0xFF
|
Loading…
Reference in New Issue