[lld] r318285 - [MinGW] Ignore the --build-id, --pie-executable and --disable-auto-image-base options
Martin Storsjo via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 15 00:18:28 PST 2017
Author: mstorsjo
Date: Wed Nov 15 00:18:28 2017
New Revision: 318285
URL: http://llvm.org/viewvc/llvm-project?rev=318285&view=rev
Log:
[MinGW] Ignore the --build-id, --pie-executable and --disable-auto-image-base options
LLD already writes a build id if debug info is enabled.
Some projects set --pie-executable to avoid GNU ld bugs about stripping
base relocations from an executable when they actually are used.
Since -fixed:no is the default (and we don't support setting the
-fixed option via the MinGW frontend), we don't need to handle this.
--disable-auto-image-base is ignored just like --enable-auto-image-base
(as we ignore from before).
Differential Revision: https://reviews.llvm.org/D40031
Modified:
lld/trunk/MinGW/Options.td
Modified: lld/trunk/MinGW/Options.td
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/MinGW/Options.td?rev=318285&r1=318284&r2=318285&view=diff
==============================================================================
--- lld/trunk/MinGW/Options.td (original)
+++ lld/trunk/MinGW/Options.td Wed Nov 15 00:18:28 2017
@@ -47,6 +47,8 @@ def Xlink : J<"Xlink=">, MetaVarName<"<a
def Bdynamic: F<"Bdynamic">, HelpText<"Link against shared libraries">;
def Bstatic: F<"Bstatic">, HelpText<"Do not link against shared libraries">;
def O: Joined<["-"], "O">, HelpText<"Optimize output file size">;
+def build_id: F<"build-id">;
+def disable_auto_image_base: F<"disable-auto-image-base">;
def enable_auto_image_base: F<"enable-auto-image-base">;
def enable_auto_import: F<"enable-auto-import">;
def full_shutdown: Flag<["--"], "full-shutdown">;
@@ -54,6 +56,7 @@ def high_entropy_va: F<"high-entropy-va"
def major_image_version: S<"major-image-version">;
def minor_image_version: S<"minor-image-version">;
def nxcompat: F<"nxcompat">, HelpText<"Enable data execution prevention">;
+def pic_executable: F<"pic-executable">;
def sysroot: J<"sysroot">, HelpText<"Sysroot">;
def tsaware: F<"tsaware">, HelpText<"Create Terminal Server aware executable">;
def v: Flag<["-"], "v">, HelpText<"Display the version number">;
More information about the llvm-commits
mailing list