[PATCH] D75536: [LLD] Add support for --unique option

Dave Bozier via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 5 08:45:41 PST 2020


davidb updated this revision to Diff 248489.
davidb added a comment.

- rebase


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D75536/new/

https://reviews.llvm.org/D75536

Files:
  lld/test/ELF/unique-orphans.s


Index: lld/test/ELF/unique-orphans.s
===================================================================
--- lld/test/ELF/unique-orphans.s
+++ lld/test/ELF/unique-orphans.s
@@ -13,10 +13,10 @@
 ## We should have 3 instances of orphan section foo.
 ## Test with -r
 # RUN: ld.lld %t.o -r -o %t.ro --unique
-# RUN: llvm-objdump -h %t.ro | FileCheck  %s
+# RUN: llvm-readelf -S %t.ro | FileCheck  %s
 ## Test for execuable link
 # RUN: ld.lld %t.o -o %t.elf --unique 
-# RUN: llvm-objdump -h %t.elf | FileCheck %s
+# RUN: llvm-readelf -S %t.elf | FileCheck %s
 
 # CHECK-COUNT-3: .foo
 # CHECK-NOT: .foo
@@ -24,6 +24,6 @@
 ## Test that --unique does not affect sections specified in output section descriptions.
 # RUN: echo 'SECTIONS { .foo : { *(.foo) }}' > %t.script
 # RUN: ld.lld %t.o -o %t2.elf -T %t.script --unique 
-# RUN: llvm-objdump -h %t2.elf | FileCheck --check-prefix UNIQUE_SCRIPT %s
+# RUN: llvm-readelf -S %t2.elf | FileCheck --check-prefix UNIQUE_SCRIPT %s
 # UNIQUE_SCRIPT: .foo
 # UNIQUE_SCRIPT-NOT: .foo


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D75536.248489.patch
Type: text/x-patch
Size: 1023 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200305/50a50555/attachment.bin>


More information about the llvm-commits mailing list