From a4eaf16d940eeb446597cd8ca22a18552f896c0a Mon Sep 17 00:00:00 2001 From: Martin Storsjo Date: Wed, 15 Nov 2017 08:18:28 +0000 Subject: [PATCH] [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 llvm-svn: 318285 --- lld/MinGW/Options.td | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lld/MinGW/Options.td b/lld/MinGW/Options.td index 2e6dbe56b1dd..c71fe96c3e80 100644 --- a/lld/MinGW/Options.td +++ b/lld/MinGW/Options.td @@ -47,6 +47,8 @@ def Xlink : J<"Xlink=">, MetaVarName<"">, 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">, HelpText<"Enable 64-bit ASLR">; 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">;