f9micro / f9-kernel

An efficient and secure microkernel built for ARM Cortex-M cores, inspired by L4
Other
683 stars 145 forks source link

Unexpected linker messages when loader is enabled #61

Closed jserv closed 10 years ago

jserv commented 10 years ago

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
georgekang commented 10 years ago

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

jserv commented 10 years ago

Thank @georgekang . Can we avoid duplicated linker script descriptions as well?