linux4sam / at91bootstrap

Second level bootloader for Microchip SoC (aka AT91)
https://www.linux4sam.org/linux4sam/bin/view/Linux4SAM/AT91Bootstrap4
114 stars 232 forks source link

Makefile: Remove -nostartfiles from LDFLAGS #129

Closed celledge closed 3 years ago

celledge commented 3 years ago

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

resolves linux4sam/at91bootstrap#127

ehristev commented 3 years ago

Applied with minor edits. Thanks !