diff options
author | Nick Clifton <nickc@redhat.com> | 2020-05-27 17:49:17 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2020-05-27 17:49:17 +0100 |
commit | 198204a7f0255c0e25dcda6b7d6a72e666d689c1 (patch) | |
tree | dc802f5592620ef65711ded01600f38420541270 /ld/ld.texi | |
parent | 17ee85fc2af74471e8c57502714a32bbeac5f1ae (diff) | |
download | gdb-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.texi | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 |