[lld] [LLD][COFF] Add ignored linker flags (PR #150815)

via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 28 07:50:46 PDT 2025


https://github.com/kkent030315 updated https://github.com/llvm/llvm-project/pull/150815

>From 0722bcb14b390ffb2fc5bcd27fd5a7635ea928d7 Mon Sep 17 00:00:00 2001
From: kkent030315 <hrn832 at protonmail.com>
Date: Sun, 27 Jul 2025 13:02:01 +0900
Subject: [PATCH 1/2] [LLD][COFF] Add ignored linker flags

---
 lld/COFF/Options.td | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/lld/COFF/Options.td b/lld/COFF/Options.td
index 2a82fb5cd8845..21ce9d33b7b59 100644
--- a/lld/COFF/Options.td
+++ b/lld/COFF/Options.td
@@ -353,6 +353,12 @@ def fastfail : F<"fastfail">;
 def kernel : F<"kernel">;
 def pdbcompress : F<"pdbcompress">;
 def emitpogophaseinfo : F<"emitpogophaseinfo">;
+defm emittoolversioninfo: B<
+    "emittoolversioninfo",
+    "Emit a tool version info after DOS header (so-called Rich header, default)",
+    "Do not emit a tool version info after DOS header (so-scalled Ricb header)">;
+def novcfeature: F<"novcfeature">;
+def nocoffgrpinfo: F<"nocoffgrpinfo">;
 def noexp : F<"noexp">;
 
 def delay : P_priv<"delay">;

>From 72b724507eecc8e1853b777a10ad65e7072b5142 Mon Sep 17 00:00:00 2001
From: kkent030315 <hrn832 at gmail.com>
Date: Mon, 28 Jul 2025 07:50:37 -0700
Subject: [PATCH 2/2] sort by alphabetical order

---
 lld/COFF/Options.td | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lld/COFF/Options.td b/lld/COFF/Options.td
index 21ce9d33b7b59..689fe7e0d4bda 100644
--- a/lld/COFF/Options.td
+++ b/lld/COFF/Options.td
@@ -357,9 +357,9 @@ defm emittoolversioninfo: B<
     "emittoolversioninfo",
     "Emit a tool version info after DOS header (so-called Rich header, default)",
     "Do not emit a tool version info after DOS header (so-scalled Ricb header)">;
-def novcfeature: F<"novcfeature">;
 def nocoffgrpinfo: F<"nocoffgrpinfo">;
 def noexp : F<"noexp">;
+def novcfeature: F<"novcfeature">;
 
 def delay : P_priv<"delay">;
 def errorreport : P_priv<"errorreport">;



More information about the llvm-commits mailing list