Unexpected linker messages when loader is enabled
jserv opened this issue · comments
When loader configuration is enabled, GNU ld always complains as the following:
LD loader.elf
arm-none-eabi-ld: error: build/discoveryf4/kernel.loader.o: Conflicting CPU architectures 13/0
The root cause of the issue is that the linker is assuming the wrong
defaults for an object which does not have a .ARM.attributes section.
We can remove all ".ARM.attributes " before linking to avoid this noise.
Please reference
http://permalink.gmane.org/gmane.comp.gnu.binutils/54317
Thank @georgekang .
Can we avoid duplicated linker script descriptions as well?