[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:
Eugene Leviant 2019-06-13 13:41:28 +00:00
parent 407c8f1f49
commit 0eb763c559
2 changed files with 16 additions and 0 deletions

View File

@ -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

View File

@ -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