Add the option to generate a memory map file showing the memory location
of all external global variables.
I'd rename this patch to avoid "memory map file" because that term is overloaded and can be interpreted in a different way. I'd say implementing -print-map.
This format is different from lld/ELF. I think we have a column for input files, input sections and output sections. Is this an intentional change?