[lld] [LLD][COFF] Skip sections marked as IMAGE_SCN_LNK_INFO in the output image (PR #122752)
Martin Storsjö via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 14 04:26:11 PST 2025
================
@@ -0,0 +1,10 @@
+// REQUIRES: x86
+// Check that sections marked as IMAGE_SCN_LNK_INFO are excluded from the output.
+
+// RUN: llvm-mc -filetype=obj -triple=x86_64-windows %s -o %t.obj
+// RUN: lld-link -machine:amd64 -dll -noentry %t.obj -out:%t.dll
+// RUN: llvm-readobj --headers %t.dll | FileCheck %s
+// CHECK-NOT: Name: .test
----------------
mstorsjo wrote:
Yeah it's probably quite possible to do in many ways before as well - just a bit surprised to see that we can and allow linking an entirely empty output image :-)
https://github.com/llvm/llvm-project/pull/122752
More information about the llvm-commits
mailing list