Merge pull request #896 from danc86/nodefaultlibs
soc/software: link with compiler instead of ld
This commit is contained in:
commit
da1092d9c0
|
@ -64,7 +64,7 @@ bios.elf: $(BIOS_DIRECTORY)/linker.ld $(OBJECTS)
|
|||
../libfatfs/libfatfs.a \
|
||||
../liblitesdcard/liblitesdcard.a \
|
||||
../liblitesata/liblitesata.a
|
||||
$(LD) $(LDFLAGS) -T $(BIOS_DIRECTORY)/linker.ld -N -o $@ \
|
||||
$(CC) $(LDFLAGS) -T $(BIOS_DIRECTORY)/linker.ld -N -o $@ \
|
||||
../libbase/crt0.o \
|
||||
$(OBJECTS) \
|
||||
-L../libcompiler_rt \
|
||||
|
|
|
@ -18,7 +18,7 @@ all: demo.bin
|
|||
chmod -x $@
|
||||
|
||||
demo.elf: $(OBJECTS)
|
||||
$(LD) $(LDFLAGS) \
|
||||
$(CC) $(LDFLAGS) \
|
||||
-T linker.ld \
|
||||
-N -o $@ \
|
||||
$(BUILD_DIR)/software/libbase/crt0.o \
|
||||
|
|
Loading…
Reference in New Issue