[PATCH] allow empty string as argument to -Map
authorNick Clifton <nickc@redhat.com>
Wed, 27 May 2020 16:49:17 +0000 (17:49 +0100)
committerNick Clifton <nickc@redhat.com>
Wed, 27 May 2020 16:49:17 +0000 (17:49 +0100)
commit198204a7f0255c0e25dcda6b7d6a72e666d689c1
treedc802f5592620ef65711ded01600f38420541270
parent17ee85fc2af74471e8c57502714a32bbeac5f1ae
 [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.
ld/ChangeLog
ld/NEWS
ld/ld.texi
ld/lexsup.c
ld/testsuite/ld-scripts/map-address.exp