[PATCH] D40732: [LLD][ELF] Add linker script generated data to non-contiguous relro test [NFC].

Peter Smith via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 4 02:34:53 PST 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL319648: [ELF] Add BYTE expression to test case for non-contiguous relro [NFC] (authored by psmith).

Changed prior to commit:
  https://reviews.llvm.org/D40732?vs=125160&id=125304#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D40732

Files:
  lld/trunk/test/ELF/relro-non-contiguous-script-data.s


Index: lld/trunk/test/ELF/relro-non-contiguous-script-data.s
===================================================================
--- lld/trunk/test/ELF/relro-non-contiguous-script-data.s
+++ lld/trunk/test/ELF/relro-non-contiguous-script-data.s
@@ -8,6 +8,13 @@
 // RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
 // RUN: not ld.lld --export-dynamic %t.o -o %t --script=%t.script 2>&1 | FileCheck %s
 
+// RUN: echo "SECTIONS { \
+// RUN: .dynamic : { *(.dynamic) } \
+// RUN: .non_ro : { BYTE(1); } \
+// RUN: .jcr : { *(.jcr) } \
+// RUN: } " > %t2.script
+// RUN: not ld.lld --export-dynamic %t.o -o %t --script=%t2.script 2>&1 | FileCheck %s
+
 // CHECK: error: section: .jcr is not contiguous with other relro sections
 
 .global _start


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D40732.125304.patch
Type: text/x-patch
Size: 757 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171204/d06dd6ea/attachment.bin>


More information about the llvm-commits mailing list