Skip to content

Commit

Permalink
rp2040: remove unused linker option
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
dalegaard committed Jul 4, 2021
1 parent ff5689e commit bb2f27f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rp2040/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bb2f27f

Please sign in to comment.