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 \
|
../libfatfs/libfatfs.a \
|
||||||
../liblitesdcard/liblitesdcard.a \
|
../liblitesdcard/liblitesdcard.a \
|
||||||
../liblitesata/liblitesata.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 \
|
../libbase/crt0.o \
|
||||||
$(OBJECTS) \
|
$(OBJECTS) \
|
||||||
-L../libcompiler_rt \
|
-L../libcompiler_rt \
|
||||||
|
|
|
@ -18,7 +18,7 @@ all: demo.bin
|
||||||
chmod -x $@
|
chmod -x $@
|
||||||
|
|
||||||
demo.elf: $(OBJECTS)
|
demo.elf: $(OBJECTS)
|
||||||
$(LD) $(LDFLAGS) \
|
$(CC) $(LDFLAGS) \
|
||||||
-T linker.ld \
|
-T linker.ld \
|
||||||
-N -o $@ \
|
-N -o $@ \
|
||||||
$(BUILD_DIR)/software/libbase/crt0.o \
|
$(BUILD_DIR)/software/libbase/crt0.o \
|
||||||
|
|
Loading…
Reference in New Issue