aboutsummaryrefslogtreecommitdiff
path: root/ld/ld.texi
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2020-05-27 17:49:17 +0100
committerNick Clifton <nickc@redhat.com>2020-05-27 17:49:17 +0100
commit198204a7f0255c0e25dcda6b7d6a72e666d689c1 (patch)
treedc802f5592620ef65711ded01600f38420541270 /ld/ld.texi
parent17ee85fc2af74471e8c57502714a32bbeac5f1ae (diff)
downloadgdb-198204a7f0255c0e25dcda6b7d6a72e666d689c1.zip
gdb-198204a7f0255c0e25dcda6b7d6a72e666d689c1.tar.gz
gdb-198204a7f0255c0e25dcda6b7d6a72e666d689c1.tar.bz2
[PATCH] allow empty string as argument to -Map
* lexsup.c (parse_args): If the map filename is defined but empty create a name based upon the output file name. If the name is defined but refers to a directory create a file inside the directory based on the output file name. * ld.texi: Document the new feature. * testsuite/ld-script/map-address.exp: Add test of new feature. * NEWS: Mention the new feature.
Diffstat (limited to 'ld/ld.texi')
-rw-r--r--ld/ld.texi7
1 files changed, 6 insertions, 1 deletions
diff --git a/ld/ld.texi b/ld/ld.texi
index a7ec0d0..5234252 100644
--- a/ld/ld.texi
+++ b/ld/ld.texi
@@ -1760,7 +1760,12 @@ Print a summary of all target-specific options on the standard output and exit.
@kindex -Map=@var{mapfile}
@item -Map=@var{mapfile}
Print a link map to the file @var{mapfile}. See the description of the
-@option{-M} option, above.
+@option{-M} option, above. Specifying the empty string as @var{mapfile}
+(that is, @code{-Map=}) causes the link map to be written to a file
+named after the @var{output} file, with @code{.map} appended.
+Specifying a directory as @var{mapfile} causes the link map to be
+written into a file inside the directory. The name of the file is
+again based upon the @var{output} filename with @code{.map} appended.
@cindex memory usage
@kindex --no-keep-memory