[lld] [lld][ELF] Enable link script to support absolute path matching (PR #156353)
Peter Smith via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 2 02:07:05 PDT 2025
================
@@ -0,0 +1,56 @@
+# REQUIRES: x86
+# RUN: rm -rf %t && mkdir -p %t
+# RUN: split-file %s %t && cd %t
+
+# RUN: llvm-mc -filetype=obj -triple=x86_64 main.s -o main.o
+
+# RUN: llvm-mc -filetype=obj -triple=x86_64 foo.s -o foo.o
+# RUN: llvm-objcopy --rename-section .text=.text_foo foo.o foo.o
----------------
smithp35 wrote:
Instead of using objcopy could you use `.section .text_foo, "ax", %progbits` instead of `.text`
https://github.com/llvm/llvm-project/pull/156353
More information about the llvm-commits
mailing list