[PATCH] allow empty string as argument to -Map
[deliverable/binutils-gdb.git] / ld / ld.texi
index a7ec0d01b3dd2675937ac6a5b57cd72e6f827cf1..52342523ed3372bf2c9bb5aec9db443eb99c870b 100644 (file)
@@ -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
This page took 0.026783 seconds and 4 git commands to generate.