[PATCH] D36519: [ELF] - Add a test for --gc-sections --undefined=foo combination.

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 10 01:16:35 PDT 2017


This revision was automatically updated to reflect the committed changes.
Closed by commit rL310556: [ELF] - Add a test for --gc-sections --undefined=foo combination. (authored by grimar).

Changed prior to commit:
  https://reviews.llvm.org/D36519?vs=110383&id=110526#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D36519

Files:
  lld/trunk/test/ELF/gc-sections-undefined.s


Index: lld/trunk/test/ELF/gc-sections-undefined.s
===================================================================
--- lld/trunk/test/ELF/gc-sections-undefined.s
+++ lld/trunk/test/ELF/gc-sections-undefined.s
@@ -0,0 +1,10 @@
+# REQUIRES: x86
+# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t
+# RUN: ld.lld %t -o %t1 --gc-sections --undefined=foo
+# RUN: llvm-readobj -t %t1 | FileCheck %s
+
+# CHECK: foo
+
+.section .foo,"ax"
+.global foo
+foo:


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D36519.110526.patch
Type: text/x-patch
Size: 469 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170810/8dc457d0/attachment.bin>


More information about the llvm-commits mailing list