This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Linking with arm-none-eabi-gcc instead of arm-none-eabi-ld

I am working with a small sample project that targets Cortex-M4 using the gcc arm-none-eabi toolchain.  The makefile invokes arm-none-eabi-ld directly to link the executable:

I want to replace the makefile with one generated by CMake.  CMake always uses arm-none-eabi-gcc for the linker stage. My understanding is that arm-none-eabi-gcc calls arm-none-eabi-ld implicitly to do the actual linking.
My problem is that the CMake script isn't working so I tried running the linker steps manually.
If I use arm-none-eabi-ld explicitly, the linking works.  But if I use arm-none-eabi-gcc the linking fails:

Do I need to pass arm-none-eabi-ld explicitly as a parameter to arm-none-eabi-gcc?




0