Without any changes, projects that used to compile now give the following
Code: Select all
Linking build/ch.elf
/usr/libexec/gcc/armv7m-softfloat-eabi/ld: error: no memory region specified for loadable section `.note.gnu.build-id'
collect2: error: ld returned 1 exit status
../os/ports/GCC/ARMCMx/rules.mk:210: recipe for target 'build/ch.elf' failed
make: *** [build/ch.elf] Error 1
I have found that you can easily disable this default by appending the following to the compiler options:
Code: Select all
-Wl,--build-id=none
However, I was wondering if this is the best solution, or if I should investigate adding support for it in my linker scripts.