[llvm] [gold] Switch section-ordering-file tests to use ld.bfd (PR #219150)

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 3 09:07:52 PDT 2026


================
@@ -1,23 +1,24 @@
 ; RUN: split-file %s %t
 ; RUN: llvm-as %t/a.ll -o %t.o
-; RUN: %gold -plugin %llvmshlibdir/LLVMgold%shlibext \
+; RUN: %ld_bfd -plugin %llvmshlibdir/LLVMgold%shlibext \
 ; RUN:     -m elf_x86_64 -o %t.exe %t.o \
 ; RUN:     --section-ordering-file=%t/order
 ; RUN: llvm-readelf -s %t.exe | FileCheck %s
 
-; --section-ordering-file is not supported by ld.bfd, use gold instead.
-; REQUIRES: gold_linker
+# REQUIRES: ld-bfd-supports-section-ordering-file
 
 ; Check that the order of the sections is tin -> _start -> pat.
 
-; CHECK:      00000000004000cf     1 FUNC    LOCAL  DEFAULT    1 pat
-; CHECK:      00000000004000b0     1 FUNC    LOCAL  DEFAULT    1 tin
-; CHECK:      00000000004000c0    15 FUNC    GLOBAL DEFAULT    1 _start
+; CHECK:      [[#%x, ADDR:]]       1  FUNC    LOCAL  DEFAULT    1 pat
----------------
teresajohnson wrote:

suggest putting these in the expected order while here

https://github.com/llvm/llvm-project/pull/219150


More information about the llvm-commits mailing list