[lld] [lld] Mark target section as code section when merging code sections into a data section. (PR #72030)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Sat Nov 11 17:56:27 PST 2023
================
@@ -0,0 +1,57 @@
+# REQUIRES: x86
+
+# Test that merging code section into a data section changes its characteristics.
+
+# RUN: llvm-mc -triple x86_64-windows-msvc %s -filetype=obj -o %t.obj
+# RUN: lld-link -machine:amd64 -dll -noentry -out:%t.dll %t.obj -merge:.testx=.testd -merge:.testx2=.testbss
----------------
MaskRay wrote:
Add more text/data sections and test the other merge direction?
https://github.com/llvm/llvm-project/pull/72030
More information about the llvm-commits
mailing list