mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-27 23:51:56 +00:00
[MinGW] Hook up the --no-insert-timestamp option
This fixes PR40582. Patch by Georg Koppen! Differential Revision: https://reviews.llvm.org/D57679 llvm-svn: 353145
This commit is contained in:
parent
f3da6abf0f
commit
537a718fcb
@ -187,6 +187,9 @@ bool mingw::link(ArrayRef<const char *> ArgsArr, raw_ostream &Diag) {
|
||||
Args.getLastArgValue(OPT_m) != "arm64pe" && !Args.hasArg(OPT_dynamicbase))
|
||||
Add("-dynamicbase:no");
|
||||
|
||||
if (Args.hasArg(OPT_no_insert_timestamp))
|
||||
Add("-timestamp:0");
|
||||
|
||||
if (Args.hasFlag(OPT_gc_sections, OPT_no_gc_sections, false))
|
||||
Add("-opt:ref");
|
||||
else
|
||||
|
@ -22,6 +22,8 @@ def l: JoinedOrSeparate<["-"], "l">, MetaVarName<"<libName>">,
|
||||
def m: JoinedOrSeparate<["-"], "m">, HelpText<"Set target emulation">;
|
||||
def map: S<"Map">, HelpText<"Output a linker map">;
|
||||
def map_eq: J<"Map=">, Alias<map>;
|
||||
def no_insert_timestamp: F<"no-insert-timestamp">,
|
||||
HelpText<"Don't include PE header timestamp">;
|
||||
def no_whole_archive: F<"no-whole-archive">,
|
||||
HelpText<"No longer include all object files for following archives">;
|
||||
def large_address_aware: Flag<["--"], "large-address-aware">,
|
||||
|
@ -151,3 +151,6 @@ REQUIRE-DEFINED: -include:_foo -include:_bar -include:_baz -include:_foo2
|
||||
|
||||
RUN: ld.lld -### -m i386pep foo.o -Llibpath | FileCheck -check-prefix LIBPATH %s
|
||||
LIBPATH: -libpath:libpath
|
||||
|
||||
RUN: ld.lld -### -m i386pep foo.o --no-insert-timestamp | FileCheck -check-prefix NOTIMESTAMP %s
|
||||
NOTIMESTAMP: -timestamp:0
|
||||
|
Loading…
Reference in New Issue
Block a user