mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-25 02:28:18 +00:00
[LLD][ELF] - Add a test for non-null terminated mergeable strings section. NFCI.
LLD reports an error in this case, but we had no test. llvm-svn: 347535
This commit is contained in:
parent
840e98f9f1
commit
294c0135ce
8
lld/test/ELF/mergeable-errors.s
Normal file
8
lld/test/ELF/mergeable-errors.s
Normal file
@ -0,0 +1,8 @@
|
||||
# REQUIRES: x86
|
||||
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
|
||||
# RUN: not ld.lld %t.o -o %t1 2>&1 | FileCheck %s
|
||||
|
||||
# CHECK: error: {{.*}}.o:(.mergeable): string is not null terminated
|
||||
|
||||
.section .mergeable,"MS",@progbits,2
|
||||
.short 0x1122
|
Loading…
x
Reference in New Issue
Block a user