• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

Revision88b9e2eb547b002431ae7e4b7799f1a06241da3c (tree)
Time2015-02-12 07:10:07
AuthorH.J. Lu <hjl.tools@gmai...>
CommiterH.J. Lu

Log Message

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.

Change Summary

Incremental Difference

--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,5 +1,10 @@
11 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
22
3+ * lexsup.c (ld_options): Add --[no-]map-whole-files for gold
4+ option compatibility.
5+
6+2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
7+
38 * plugin.c (message): Output "warning:" for LDPL_WARNING. Output
49 "error:" for LDPL_FATAL and LDPL_ERROR.
510 * testplug2.c (parse_option): Handle fatal, error and warning.
--- a/ld/lexsup.c
+++ b/ld/lexsup.c
@@ -176,6 +176,12 @@ static const struct ld_option ld_options[] =
176176 { {"fuse-ld=", required_argument, NULL, OPTION_IGNORE},
177177 '\0', NULL, N_("Ignored for GCC linker option compatibility"),
178178 ONE_DASH },
179+ { {"map-whole-files", optional_argument, NULL, OPTION_IGNORE},
180+ '\0', NULL, N_("Ignored for gold option compatibility"),
181+ TWO_DASHES },
182+ { {"no-map-whole-files", optional_argument, NULL, OPTION_IGNORE},
183+ '\0', NULL, N_("Ignored for gold option compatibility"),
184+ TWO_DASHES },
179185 { {"Qy", no_argument, NULL, OPTION_IGNORE},
180186 '\0', NULL, N_("Ignored for SVR4 compatibility"), ONE_DASH },
181187 { {"emit-relocs", no_argument, NULL, 'q'},