mirror of
https://github.com/intel/llvm.git
synced 2026-01-26 21:53:12 +08:00
[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
This commit is contained in:
@@ -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">;
|
||||
|
||||
Reference in New Issue
Block a user