[lld] r302792 - [ELF] - Make text section location explicit in early-assign-symbol.s test.

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Thu May 11 04:53:49 PDT 2017


Author: grimar
Date: Thu May 11 06:53:49 2017
New Revision: 302792

URL: http://llvm.org/viewvc/llvm-project?rev=302792&view=rev
Log:
[ELF] - Make text section location explicit in early-assign-symbol.s test.

Testcase itself depends on .text section location, which was orphan earlier.

Suggested by Rafael EspĂ­ndola

Modified:
    lld/trunk/test/ELF/linkerscript/early-assign-symbol.s

Modified: lld/trunk/test/ELF/linkerscript/early-assign-symbol.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/linkerscript/early-assign-symbol.s?rev=302792&r1=302791&r2=302792&view=diff
==============================================================================
--- lld/trunk/test/ELF/linkerscript/early-assign-symbol.s (original)
+++ lld/trunk/test/ELF/linkerscript/early-assign-symbol.s Thu May 11 06:53:49 2017
@@ -1,10 +1,10 @@
 # REQUIRES: x86
 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
 
-# RUN: echo "SECTIONS { aaa = 1 + ABSOLUTE(foo - 1); }" > %t1.script
+# RUN: echo "SECTIONS { aaa = 1 + ABSOLUTE(foo - 1); .text  : { *(.text*) } }" > %t1.script
 # RUN: not ld.lld -o %t --script %t1.script %t.o 2>&1 | FileCheck %s
 
-# RUN: echo "SECTIONS { aaa = ABSOLUTE(foo - 1) + 1; }" > %t2.script
+# RUN: echo "SECTIONS { aaa = ABSOLUTE(foo - 1) + 1; .text  : { *(.text*) } }" > %t2.script
 # RUN: not ld.lld -o %t --script %t2.script %t.o 2>&1 | FileCheck %s
 
 # CHECK: error: unable to evaluate expression: input section .text has no output section assigned




More information about the llvm-commits mailing list