Exception vector missing when building with ld

Hi,

I'm trying to use LD instead of LLD, in an empty project generated from cortex-m-quickstart. I just uncommented the lines already provided in config:

rustflags = [
  # LLD (shipped with the Rust toolchain) is used as the default linker
  "-C", "link-arg=-Tlink.x",
  # if you run into problems with LLD switch to the GNU linker by commenting out
  # this line
  "-C", "linker=/home/wjakobczyk/workpriv/gcc-arm-none-eabi-4_8-2013q4/bin/arm-none-eabi-ld",
]

And I'm getting this:

note: /home/wjakobczyk/workpriv/gcc-arm-none-eabi-4_8-2013q4/bin/arm-none-eabi-ld: 
BUG(cortex-m-rt): the reset vector is missing
/home/wjakobczyk/workpriv/gcc-arm-none-eabi-4_8-2013q4/bin/arm-none-eabi-ld: 
BUG(cortex-m-rt): the exception vectors are missing

What's wrong?
The same codebase builds ok when I comment the ld linker line (default config)

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.