diff --git a/lld/test/ELF/unique-orphans.s b/lld/test/ELF/unique-orphans.s --- a/lld/test/ELF/unique-orphans.s +++ b/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