diff options
author | Martin Storsjo <martin@martin.st> | 2017-11-15 08:18:28 +0000 |
---|---|---|
committer | Martin Storsjo <martin@martin.st> | 2017-11-15 08:18:28 +0000 |
commit | a4eaf16d940eeb446597cd8ca22a18552f896c0a (patch) | |
tree | a1ddb6900e6dbc60a9eeb8e407604ab31ada9234 | |
parent | 61716878aec0dd615ce88f2f8283292abd01e133 (diff) | |
download | bcm5719-llvm-a4eaf16d940eeb446597cd8ca22a18552f896c0a.tar.gz bcm5719-llvm-a4eaf16d940eeb446597cd8ca22a18552f896c0a.zip |
[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
-rw-r--r-- | lld/MinGW/Options.td | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lld/MinGW/Options.td b/lld/MinGW/Options.td index 2e6dbe56b1d..c71fe96c3e8 100644 --- a/lld/MinGW/Options.td +++ b/lld/MinGW/Options.td @@ -47,6 +47,8 @@ def Xlink : J<"Xlink=">, MetaVarName<"<arg>">, 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">; |