[lld] r296786 - Simplify test by producing an executable.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 2 11:19:59 PST 2017
Author: rafael
Date: Thu Mar 2 13:19:59 2017
New Revision: 296786
URL: http://llvm.org/viewvc/llvm-project?rev=296786&view=rev
Log:
Simplify test by producing an executable.
Modified:
lld/trunk/test/ELF/linkerscript/sections-gc2.s
Modified: lld/trunk/test/ELF/linkerscript/sections-gc2.s
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/linkerscript/sections-gc2.s?rev=296786&r1=296785&r2=296786&view=diff
==============================================================================
--- lld/trunk/test/ELF/linkerscript/sections-gc2.s (original)
+++ lld/trunk/test/ELF/linkerscript/sections-gc2.s Thu Mar 2 13:19:59 2017
@@ -3,28 +3,22 @@
# RUN: echo "SECTIONS { \
# RUN: used_in_reloc : { *(used_in_reloc) } \
# RUN: used_in_script : { *(used_in_script) } \
-# RUN: .data : { *(.data) } \
+# RUN: .text : { *(.text) } \
# RUN: }" > %t.script
-# RUN: ld.lld -T %t.script -o %t.so %t.o -shared --gc-sections
+# RUN: ld.lld -T %t.script -o %t.so %t.o --gc-sections
# RUN: llvm-objdump -h %t.so | FileCheck %s
# CHECK: Idx Name Size Address Type
# CHECK-NEXT: 0
# CHECK-NEXT: used_in_reloc
-# CHECK-NEXT: .dynsym
-# CHECK-NEXT: .hash
-# CHECK-NEXT: .dynstr
-# CHECK-NEXT: .rela.dyn
-# CHECK-NEXT: .data
-# CHECK-NEXT: .dynamic
+# CHECK-NEXT: .text
# CHECK-NEXT: .comment
# CHECK-NEXT: .symtab
# CHECK-NEXT: .shstrtab
# CHECK-NEXT: .strtab
- .data
- .global foo
-foo:
+ .global _start
+_start:
.quad __start_used_in_reloc
.section unused,"a"
More information about the llvm-commits
mailing list