Open Quuxplusone opened 7 years ago
I think /map is used mostly for debugging, so we implemented /lldmap which emits similar information in a different format. Since the format used for /lldmap is the same as the LLD/ELF linker, I don't think we want to remove that.
Implementing MSVC-compatible /map option might make sense if it is easy to do, though.
As map files are mostly consumed by humans to look up some symbols addresses, having the exact same format is not critical in most cases.
Even if unsupported, it would be better to just emit a warning instead of an error for /MAP to allow replacing the MS linker without changing build scripts.
Rainer,
Thank you for the suggestion. I agree with you -- it makes sense to print out a help message to use /lldmap instead of /map if /map is given. I'll make a change.
Hello, this option is not supported by LLD 4.0
I use a commercial product that reads .map files generated by Visual Studio's linker, however lld doesn't support this option (if it did they should also be generated in the same format).
I can't patch the commercial product so it would be great if this feature was added.