Skip to content

Commit

Permalink
Merge pull request #8 from akriese/fix/abort-gcc
Browse files Browse the repository at this point in the history
fix: would complain about 'abort' being unlinked on andorra
  • Loading branch information
akriese authored Nov 20, 2023
2 parents d1d6281 + 2e489e6 commit a079237
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ LD = $(IMP_LIB) arm-none-eabi-ld
OBJCOPY = $(IMP_LIB) arm-none-eabi-objcopy
OBJDUMP = $(IMP_LIB) arm-none-eabi-objdump

CFLAGS = -Wall -Wextra -ffreestanding -mcpu=arm920t -O2
CFLAGS = -Wall -Wextra -ffreestanding -mcpu=arm920t -O2 --unresolved-symbols=ignore-in-object-files
#LIBGCC := $(shell $(CC) -print-libgcc-file-name)

DEP = $(OBJ:.o=.d)
Expand Down Expand Up @@ -63,7 +63,7 @@ all: kernel
$(CC) $(CFLAGS) -MMD -MP -o $@ -c $<

kernel: $(LSCRIPT) $(OBJ)
$(LD) -T$(LSCRIPT) -o $@ $(OBJ) $(LIBGCC)
$(LD) -T$(LSCRIPT) --unresolved-symbols=ignore-in-object-files -o $@ $(OBJ) $(LIBGCC)

kernel.bin: kernel
$(OBJCOPY) -Obinary --set-section-flags .bss=contents,alloc,load,data $< $@
Expand Down

0 comments on commit a079237

Please sign in to comment.