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

H.J.Lu hjl@sourceware.org
Wed Feb 11 22:11:00 GMT 2015


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=88b9e2eb547b002431ae7e4b7799f1a06241da3c

commit 88b9e2eb547b002431ae7e4b7799f1a06241da3c
Author: H.J. Lu <hjl.tools@gmail.com>
Date:   Wed Feb 11 12:16:36 2015 -0800

    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.

Diff:
---
 ld/ChangeLog | 5 +++++
 ld/lexsup.c  | 6 ++++++
 2 files changed, 11 insertions(+)

diff --git a/ld/ChangeLog b/ld/ChangeLog
index f46bd9b..6f5921b 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,5 +1,10 @@
 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
 	"error:" for LDPL_FATAL and LDPL_ERROR.
 	* testplug2.c (parse_option): Handle fatal, error and warning.
diff --git a/ld/lexsup.c b/ld/lexsup.c
index e23f1e7..db74ff8 100644
--- a/ld/lexsup.c
+++ b/ld/lexsup.c
@@ -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'},



More information about the Binutils-cvs mailing list