Skip to content

Commit

Permalink
fix: would complain about 'abort' being unlinked on andorra
Browse files Browse the repository at this point in the history
  • Loading branch information
akriese committed Nov 20, 2023
1 parent d1d6281 commit 2e489e6
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 2e489e6

Please sign in to comment.