From: George Rimar Date: Mon, 26 Nov 2018 08:40:20 +0000 (+0000) Subject: [LLD][ELF] - Add a test for non-null terminated mergeable strings section. NFCI. X-Git-Tag: llvmorg-8.0.0-rc1~3638 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=294c0135ced80070e329b52f4e6db39ff68179f9;p=platform%2Fupstream%2Fllvm.git [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 --- diff --git a/lld/test/ELF/mergeable-errors.s b/lld/test/ELF/mergeable-errors.s new file mode 100644 index 0000000..5785898 --- /dev/null +++ b/lld/test/ELF/mergeable-errors.s @@ -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