1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 20:17:44 +00:00

Kernel: Link with libgcc

This allows us to get rid of all the custom 64-bit division helpers.
I wanted to do this ages ago but couldn't get it working. Turns out it
was unstable due to libgcc using the regular ABI and the kernel being
built with -mregparm=3.

Now that we build the kernel with regular calls, we can just link with
libgcc and get this stuff for free. :^)
This commit is contained in:
Andreas Kling 2019-11-06 13:07:07 +01:00
parent 1c6f8d3cbd
commit 349d2ec1c2
2 changed files with 1 additions and 96 deletions

View file

@ -120,7 +120,7 @@ kernel.map: kernel
@echo "MKMAP $@"; sh mkmap.sh
$(KERNEL): $(OBJS)
@echo "LD $@"; $(LD) $(LDFLAGS) -o $@ $(OBJS)
@echo "LD $@"; $(LD) $(LDFLAGS) -o $@ $(OBJS) -lgcc
.cpp.o:
@echo "CXX $<"; $(CXX) $(CXXFLAGS) -o $@ -c $<