From: Amelia Coutard Date: Sat, 4 Jun 2022 18:06:33 +0000 (+0200) Subject: Changed the Makefile to use mcmodel=kernel libgcc, and not mcmodel=large libgcc X-Git-Url: https://git.ameliathe1st.gay/?a=commitdiff_plain;h=d0e269cf9c7e41f4c3b5f16e824dd39980959538;p=voyage-au-centre-des-fichiers.git Changed the Makefile to use mcmodel=kernel libgcc, and not mcmodel=large libgcc --- diff --git a/Makefile b/Makefile index 516a4a9..924baed 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,7 @@ CXXFLAGS := $(CXXFLAGS) -Wall -Wextra -Werror -std=c++20 \ LDFLAGS ?= -O2 LDFLAGS := $(LDFLAGS) -Wall -Wextra -Werror -std=c++20 \ -ffreestanding -T linker.ld -z max-page-size=0x1000 \ - -mno-red-zone -mcmodel=large # Normally has no effect, but is used to change the multilib libgcc, to use mcmodel=large and be able to use global constructors and destructors. + -mno-red-zone -mcmodel=kernel # Normally has no effect, but is used to change the multilib libgcc, to use mcmodel=kernel and be able to use global constructors and destructors. LDLIBS := $(LDLIBS) -nostdlib -lgcc CPPOBJS := $(patsubst $(SRC_DIR)%,$(OUT_DIR)%.o,$(shell find $(SRC_DIR) -name '*.cpp'))