Add --[no-]map-whole-files for gold compatibility

Gold supports:

  --map-whole-files           Map whole files to memory (default on 64-bit hosts)
  --no-map-whole-files        Map relevant file parts to memory (default on 32-bit hosts)

This patch adds --[no-]map-whole-files command line options for gold
compatibility.  They are ignored for ld.

	* lexsup.c (ld_options): Add --[no-]map-whole-files for gold
	option compatibility.
This commit is contained in:
H.J. Lu 2015-02-11 12:16:36 -08:00
parent 45e813544e
commit 88b9e2eb54
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
* lexsup.c (ld_options): Add --[no-]map-whole-files for gold
option compatibility.
2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
* plugin.c (message): Output "warning:" for LDPL_WARNING. Output

View File

@ -176,6 +176,12 @@ static const struct ld_option ld_options[] =
{ {"fuse-ld=", required_argument, NULL, OPTION_IGNORE},
'\0', NULL, N_("Ignored for GCC linker option compatibility"),
ONE_DASH },
{ {"map-whole-files", optional_argument, NULL, OPTION_IGNORE},
'\0', NULL, N_("Ignored for gold option compatibility"),
TWO_DASHES },
{ {"no-map-whole-files", optional_argument, NULL, OPTION_IGNORE},
'\0', NULL, N_("Ignored for gold option compatibility"),
TWO_DASHES },
{ {"Qy", no_argument, NULL, OPTION_IGNORE},
'\0', NULL, N_("Ignored for SVR4 compatibility"), ONE_DASH },
{ {"emit-relocs", no_argument, NULL, 'q'},