diff options
author | Eugene Leviant <eleviant@accesssoftek.com> | 2019-06-13 13:41:28 +0000 |
---|---|---|
committer | Eugene Leviant <eleviant@accesssoftek.com> | 2019-06-13 13:41:28 +0000 |
commit | 0eb763c5597590710b33e8b8f55bc74d40028c30 (patch) | |
tree | 5afff0de0464b5310706d03419b3f1d73ce7a1b9 | |
parent | 407c8f1f4932dc4fdbb0236029226449481684c5 (diff) | |
download | bcm5719-llvm-0eb763c5597590710b33e8b8f55bc74d40028c30.tar.gz bcm5719-llvm-0eb763c5597590710b33e8b8f55bc74d40028c30.zip |
[lld][ELF] Add tests for bad subsection length in .ARM.attributes
Differential revision: https://reviews.llvm.org/D63191
llvm-svn: 363261
-rw-r--r-- | lld/test/ELF/invalid/bad-arm-attributes.s | 8 | ||||
-rw-r--r-- | lld/test/ELF/invalid/bad-arm-attributes2.s | 8 |
2 files changed, 16 insertions, 0 deletions
diff --git a/lld/test/ELF/invalid/bad-arm-attributes.s b/lld/test/ELF/invalid/bad-arm-attributes.s new file mode 100644 index 00000000000..be9eb8df881 --- /dev/null +++ b/lld/test/ELF/invalid/bad-arm-attributes.s @@ -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 diff --git a/lld/test/ELF/invalid/bad-arm-attributes2.s b/lld/test/ELF/invalid/bad-arm-attributes2.s new file mode 100644 index 00000000000..3b3d092202e --- /dev/null +++ b/lld/test/ELF/invalid/bad-arm-attributes2.s @@ -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 |