Menu

#3 Give MAP files a meaningful name

ld_tools 3.0.5
closed
nobody
ld_tools (2)
5
2019-07-08
2016-03-17
No

Currently there is only the option of requesting .MAP's from a LINK via the GNV_LINK_QUALIFIERS. This then ends up creating .MAP files of the form:

.MAP;109

or

baa_432ced.MAP;1
baa_432dfe.MAP;1
baa_432e02.MAP;1

It would be nice, especially when working with large packages like Samba where there are 100s of images if the MAP files could have the name of their image, rather than the name of the option file created during the process.

Discussion

  • Bill Pedersen

    Bill Pedersen - 2016-03-25

    The issue is the LINKER does not appear to take the name from the /EXE= option but from the first file it sees, which in our case ends up being the options file. Here is a command line example:

    LINK/MAP=dga8:[listings.samba] -
          /EXEC=REF_ROOT:[samba-4^.3^.1.bin.default.source4.heimdal_build]compile_et. -
          REF_ROOT:[samba-4^.3^.1.bin]baa_46d25e./OPT
    

    Which resulted in the baa_46d25e.MAP file to be crearted in the dga8:[listings.samba] location. Where the map location was created in this case from the GNV_LINK_QUALIFIER environment variable.

    .MAP files are created from LINK commands of this nature:

    LINK/MAP=dga8:[listings.samba] -
            /SHAR=REF_ROOT:[samba-4^.3^.1.bin.default.lib.replace]libreplace-samba4.so - 
            sys$input:/OPT, -
            $1$DGA8:[gnv_helpers.samba]gnv$libreplace-samba4.opt;/OPT
    
     

    Last edit: Bill Pedersen 2016-03-25
  • John Malmberg

    John Malmberg - 2016-03-25
    • Group: --> ld_tools 3.0.5
     
  • John Malmberg

    John Malmberg - 2016-03-25

    The map files with the temporary names are a result of the CC wrapper sometimes using generated temporary files to work around limitations in the DCL commands issued to the compiler or other reasons a tempoarty file is used.

    I am adding a GNV_LINK_MAP environment variable that when set to 1 for enabled will add a /map=exename.map file to the link command.

     
  • John Malmberg

    John Malmberg - 2019-07-08
    • status: open --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB
Gen AI apps are built with MongoDB Atlas
Atlas offers built-in vector search and global availability across 125+ regions. Start building AI apps faster, all in one place.
Try Free →