I’m writing a Rust program targeted for an STM32F407 processor using zinc. I’d like to be able to produce a linker map file. I’ve found that I can put the following in my main.rs and this gives me the desired result:

#[link_args = "-Wl,-Map=blink_stm32f4.map"]
extern {}

However, the documentation for

suggests not to use this method.

What other methods exist to get the linker to produce a map file?

Anonymous Asked question May 13, 2021