cmake: linker: ld: Use "-Map <mapfile>" for legacy compatibility
The build system currently generates mapfiles by invoking ld with the "-Map=<mapfile>" command line argument. This variant of the flag was introduced in GNU binutils 2.20. To enable compatibility with legacy versions of the GNU ld, the argument has been replaced with the "-Map <mapfile>" variant. Signed-off-by: Joel Holdsworth <jholdsworth@nvidia.com>
This commit is contained in:
parent
ba2f6f8945
commit
f2c8a5acc4
1 changed files with 1 additions and 1 deletions
|
@ -124,7 +124,7 @@ function(toolchain_ld_link_elf)
|
|||
${TOOLCHAIN_LD_LINK_ELF_LINKER_SCRIPT}
|
||||
${TOOLCHAIN_LD_LINK_ELF_LIBRARIES_POST_SCRIPT}
|
||||
|
||||
${LINKERFLAGPREFIX},-Map=${TOOLCHAIN_LD_LINK_ELF_OUTPUT_MAP}
|
||||
${LINKERFLAGPREFIX},-Map,${TOOLCHAIN_LD_LINK_ELF_OUTPUT_MAP}
|
||||
${LINKERFLAGPREFIX},--whole-archive
|
||||
${WHOLE_ARCHIVE_LIBS}
|
||||
${LINKERFLAGPREFIX},--no-whole-archive
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue