[lld] 715bc51 - [LLD] [MinGW] Ignore --sort-common option (#66336)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 15 01:13:31 PDT 2023
Author: Julien Schueller
Date: 2023-09-15T11:13:27+03:00
New Revision: 715bc5119051c5f404466512c50d58b033999426
URL: https://github.com/llvm/llvm-project/commit/715bc5119051c5f404466512c50d58b033999426
DIFF: https://github.com/llvm/llvm-project/commit/715bc5119051c5f404466512c50d58b033999426.diff
LOG: [LLD] [MinGW] Ignore --sort-common option (#66336)
like done in the ELF side
this would allow to use archlinux default mingw flags:
`-Wl,-O1,--sort-common,--as-needed -fstack-protector`
(on archlinux packages use the GNU linker by default)
Added:
Modified:
lld/MinGW/Options.td
Removed:
################################################################################
diff --git a/lld/MinGW/Options.td b/lld/MinGW/Options.td
index e9c4ada404568b3..f59bd5bc38a8db8 100644
--- a/lld/MinGW/Options.td
+++ b/lld/MinGW/Options.td
@@ -223,6 +223,7 @@ def: F<"no-undefined">;
def: F<"pic-executable">;
defm: EqNoHelp<"plugin">;
defm: EqNoHelp<"sysroot">;
+def: F<"sort-common">;
def: F<"start-group">;
// Ignore GCC collect2 LTO plugin related options. Note that we don't support
More information about the llvm-commits
mailing list