Skip to content

Makefile: Remove -nostartfiles from LDFLAGS

Giandomenico Rossi requested to merge vulcano-fix-nostartfiles into Vulcano

Binutils linker ld does not support the flag -nostartfiles. This is interpreted as "-n -o startfiles" which fortunately has no impact on the build process. Removing -nostartfiles has no impact on the build.

Binutils 2.36 and later ld has improved flag parsing and throws an error if -nostartfiles is passed as an argument. Removing the flag fixes the problem.

Details on the Binutils ML: https://sourceware.org/pipermail/binutils/2021-June/116826.html

In our ld command line there are explicit -n -o (BINDIR)/(BOOT_NAME).elf options, hence removing -nostartfiles will not alter the build.

Signed-off-by: Chris Elledge celledge@digitallumensinc.com Reviwed-by: Aubin Constans aubin.constans@microchip.com

Merge request reports