[lld] r329563 - [ELF] - Simplify test case. NFC.

George Rimar via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 9 06:13:36 PDT 2018


Author: grimar
Date: Mon Apr  9 06:13:36 2018
New Revision: 329563

URL: http://llvm.org/viewvc/llvm-project?rev=329563&view=rev
Log:
[ELF] - Simplify test case. NFC.

Modified:
    lld/trunk/test/ELF/linkerscript/section-metadata2.s

Modified: lld/trunk/test/ELF/linkerscript/section-metadata2.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/linkerscript/section-metadata2.s?rev=329563&r1=329562&r2=329563&view=diff
==============================================================================
--- lld/trunk/test/ELF/linkerscript/section-metadata2.s (original)
+++ lld/trunk/test/ELF/linkerscript/section-metadata2.s Mon Apr  9 06:13:36 2018
@@ -1,9 +1,9 @@
 # REQUIRES: x86
 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
+# RUN: echo "SECTIONS { .text : { *(.text.*) } }" > %t.script
 
 # RUN: echo "_bar" > %t.ord
 # RUN: echo "_foo" >> %t.ord
-# RUN: echo "SECTIONS { .text : { *(.text.*) } }" > %t.script
 # RUN: ld.lld --symbol-ordering-file %t.ord -o %t --script %t.script %t.o
 # RUN: llvm-objdump -s %t | FileCheck %s
 
@@ -14,7 +14,6 @@
 
 # RUN: echo "_foo" > %t.ord
 # RUN: echo "_bar" >> %t.ord
-# RUN: echo "SECTIONS { .text : { *(.text.*) } }" > %t.script
 # RUN: ld.lld --symbol-ordering-file %t.ord -o %t --script %t.script %t.o
 # RUN: llvm-objdump -s %t | FileCheck %s --check-prefix=INV
 
@@ -23,9 +22,6 @@
 # INV:      Contents of section .rodata:
 # INV-NEXT: 01000000 00000000 02000000 00000000
 
-.global _start
-_start:
-
 .section .text.foo,"a", at progbits
 _foo:
 .quad 1




More information about the llvm-commits mailing list