rp2040: remove unused linker option
In binutils 2.36 and above the -nostartfiles option is no longer ignored. -nostartfiles is actually a gcc option, and so isn't supported by ld. Earlier versions of binutils however had less error checking, and thus just ignored the option. Signed-off-by: Lasse Dalegaard <dalegaard@gmail.com>
This commit is contained in:
parent
ff5689e9e1
commit
bb2f27f928
|
@ -23,7 +23,7 @@ src-$(CONFIG_SERIAL) += rp2040/serial.c generic/serial_irq.c
|
|||
$(OUT)stage2.o: lib/rp2040/boot_stage2/boot2_w25q080.S
|
||||
@echo " Building rp2040 stage2 $@"
|
||||
$(Q)$(CC) $(CFLAGS) -Ilib/rp2040/boot_stage2 -Ilib/rp2040/boot_stage2/asminclude -DPICO_FLASH_SPI_CLKDIV=2 -c $< -o $(OUT)stage2raw1.o
|
||||
$(Q)$(LD) $(OUT)stage2raw1.o -nostartfiles --script=lib/rp2040/boot_stage2/boot_stage2.ld -o $(OUT)stage2raw.o
|
||||
$(Q)$(LD) $(OUT)stage2raw1.o --script=lib/rp2040/boot_stage2/boot_stage2.ld -o $(OUT)stage2raw.o
|
||||
$(Q)$(OBJCOPY) -O binary $(OUT)stage2raw.o $(OUT)stage2raw.bin
|
||||
$(Q)lib/rp2040/boot_stage2/pad_checksum -s 0xffffffff $(OUT)stage2raw.bin $(OUT)stage2.S
|
||||
$(Q)$(CC) $(CFLAGS) -c $(OUT)stage2.S -o $(OUT)stage2.o
|
||||
|
|
Loading…
Reference in New Issue