aboutsummaryrefslogtreecommitdiff
path: root/ld/lexsup.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2015-02-11 12:16:36 -0800
committerH.J. Lu <hjl.tools@gmail.com>2015-02-11 14:10:07 -0800
commit88b9e2eb547b002431ae7e4b7799f1a06241da3c (patch)
tree750d50c470e52f9e8bb7f71cbc99465b0157c171 /ld/lexsup.c
parent45e813544eb076dd52fefe7b36e28b088963207d (diff)
downloadgdb-88b9e2eb547b002431ae7e4b7799f1a06241da3c.zip
gdb-88b9e2eb547b002431ae7e4b7799f1a06241da3c.tar.gz
gdb-88b9e2eb547b002431ae7e4b7799f1a06241da3c.tar.bz2
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.
Diffstat (limited to 'ld/lexsup.c')
-rw-r--r--ld/lexsup.c6
1 files changed, 6 insertions, 0 deletions
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'},