diff options
author | Rui Ueyama <ruiu@google.com> | 2018-03-01 20:38:38 +0000 |
---|---|---|
committer | Rui Ueyama <ruiu@google.com> | 2018-03-01 20:38:38 +0000 |
commit | b34bd34fd27ec6c7d085421af035b6a3a93fe569 (patch) | |
tree | 0c5aa0d2ab72d5720dcb692ca1ef19dcac148c5c | |
parent | 8931bbf8dffe4ce46f23915480cfd07fc579396c (diff) | |
download | bcm5719-llvm-b34bd34fd27ec6c7d085421af035b6a3a93fe569.tar.gz bcm5719-llvm-b34bd34fd27ec6c7d085421af035b6a3a93fe569.zip |
[MinGW] Fix --{start,end}-group.
Currently --start-group=foo is accidentally accepted by the MinGW driver.
Differential Revision: https://reviews.llvm.org/D43836
llvm-svn: 326478
-rw-r--r-- | lld/MinGW/Options.td | 4 | ||||
-rw-r--r-- | lld/test/MinGW/driver.test | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/lld/MinGW/Options.td b/lld/MinGW/Options.td index 34bf920db0c..4213b8e6500 100644 --- a/lld/MinGW/Options.td +++ b/lld/MinGW/Options.td @@ -51,7 +51,7 @@ 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 end_group: J<"end-group">; +def end_group: F<"end-group">; def full_shutdown: Flag<["--"], "full-shutdown">; def high_entropy_va: F<"high-entropy-va">, HelpText<"Enable 64-bit ASLR">; def major_image_version: S<"major-image-version">; @@ -60,7 +60,7 @@ def no_seh: F<"no-seh">; def nxcompat: F<"nxcompat">, HelpText<"Enable data execution prevention">; def pic_executable: F<"pic-executable">; def sysroot: J<"sysroot">, HelpText<"Sysroot">; -def start_group: J<"start-group">; +def start_group: F<"start-group">; def tsaware: F<"tsaware">, HelpText<"Create Terminal Server aware executable">; def v: Flag<["-"], "v">, HelpText<"Display the version number">; def version: F<"version">, HelpText<"Display the version number and exit">; diff --git a/lld/test/MinGW/driver.test b/lld/test/MinGW/driver.test index 8bf70a9b24f..b0b5f56576a 100644 --- a/lld/test/MinGW/driver.test +++ b/lld/test/MinGW/driver.test @@ -124,3 +124,5 @@ ICF-NONE: -opt:noicf RUN: ld.lld -### -m i386pep foo.o --icf=all | FileCheck -check-prefix ICF %s RUN: ld.lld -### -m i386pep foo.o -icf=all | FileCheck -check-prefix ICF %s ICF: -opt:icf + +RUN: ld.lld -### -m i386pep --start-group foo.o --end-group |