Skip to content

Commit 4a66a11

Browse files
committed
[LLVMgold.so][test] Make comdat-nodeduplicate.ll work with binutils<2.27
1 parent c05d30e commit 4a66a11

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

llvm/test/tools/gold/X86/comdat-nodeduplicate.ll

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@
3535
; RUN: opt --module-summary %t/b.ll -o %t/b.bc
3636
; RUN: opt --module-summary %t/c.ll -o %t/c.bc
3737

38+
;; gold from binutils>=2.27 discards b.bc:__profc_foo even in the absence of --gc-sections.
3839
; RUN: %gold -m elf_x86_64 -plugin %llvmshlibdir/LLVMgold%shlibext \
39-
; RUN: -u foo %t/a.bc --start-lib %t/b.bc %t/c.bc --end-lib -o %t/abc
40+
; RUN: -u foo %t/a.bc --start-lib %t/b.bc %t/c.bc --end-lib -o %t/abc --gc-sections
4041
; RUN: llvm-readelf -x .data %t/abc | FileCheck %s --check-prefix=DATA
4142

4243
;--- a.ll

0 commit comments

Comments
 (0)