From d0e269cf9c7e41f4c3b5f16e824dd39980959538 Mon Sep 17 00:00:00 2001 From: Amelia Coutard Date: Sat, 4 Jun 2022 20:06:33 +0200 Subject: [PATCH] Changed the Makefile to use mcmodel=kernel libgcc, and not mcmodel=large libgcc --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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')) -- 2.47.0