diff --git a/lld/test/ELF/arm-exidx-output.s b/lld/test/ELF/arm-exidx-output.s --- a/lld/test/ELF/arm-exidx-output.s +++ b/lld/test/ELF/arm-exidx-output.s @@ -1,7 +1,11 @@ // REQUIRES: arm -// RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %s -o %t -// RUN: ld.lld %t -o %t2 -// RUN: llvm-readobj --sections %t2 | FileCheck %s +// RUN: llvm-mc -filetype=obj -triple=armv7a-none-linux-gnueabi %s -o %t.o +// RUN: ld.lld %t.o -o %t +// RUN: llvm-readobj --sections %t | FileCheck %s + +// RUN: echo 'SECTIONS { .text.f1 : { *(.text.f1) } .text.f2 : { *(.text.f2) } }' > %t.lds +// RUN: ld.lld -T %t.lds %t.o -o %t1 +// RUN: llvm-readobj --sections %t1 | FileCheck %s // Check that only a single .ARM.exidx output section is created when // there are input sections of the form .ARM.exidx.. The @@ -40,5 +44,4 @@ // CHECK-NEXT: SHF_LINK_ORDER // CHECK-NEXT: ] -// CHECK-NOT: Name: .ARM.exidx.text.f1 -// CHECK-NOT: Name: .ARM.exidx.text.f2 +// CHECK-NOT: Name: .ARM.exidx