summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--patches/gcc-15.1.0-x86_64-pc-elf/0001-platform.patch4
-rwxr-xr-xscripts/0500-build-target-gcc.sh3
3 files changed, 5 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index d2bffed..d0542e6 100644
--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,7 @@ NEWLIB_VERSION ?= 4.5.0.20241231
TARGET ?= x86_64-pc-elf
PLATFORM ?= x86-64
-IMAGE_BUILD ?= 2
+IMAGE_BUILD ?= 3
all:
podman pull docker.io/archlinux:latest
diff --git a/patches/gcc-15.1.0-x86_64-pc-elf/0001-platform.patch b/patches/gcc-15.1.0-x86_64-pc-elf/0001-platform.patch
index 1b3c0f2..2b7961b 100644
--- a/patches/gcc-15.1.0-x86_64-pc-elf/0001-platform.patch
+++ b/patches/gcc-15.1.0-x86_64-pc-elf/0001-platform.patch
@@ -1,8 +1,8 @@
--- /dev/null
+++ gcc/config/i386/t-x86_64-pc-elf
@@ -0,0 +1,2 @@
-+MULTILIB_EXTRA_OPTS += mno-red-zone mcmodel=large fno-gnu-tm fPIE
-+CRTSTUFF_T_CFLAGS = -mno-red-zone -mcmodel=large -fno-gnu-tm -fPIE
++MULTILIB_EXTRA_OPTS += mno-red-zone mcmodel=kernel
++CRTSTUFF_T_CFLAGS = -mno-red-zone -mcmodel=kernel
--- gcc/config.gcc 2024-08-01 10:17:14.000000000 +0200
+++ gcc/config.gcc 2024-09-16 14:03:02.049140896 +0200
@@ -1960,6 +1960,7 @@
diff --git a/scripts/0500-build-target-gcc.sh b/scripts/0500-build-target-gcc.sh
index 913405f..ac00bbe 100755
--- a/scripts/0500-build-target-gcc.sh
+++ b/scripts/0500-build-target-gcc.sh
@@ -15,10 +15,11 @@ PATH=/opt/bootstrap/bin:/opt/toolchain/bin:$PATH
--disable-wchar_t \
--enable-cxx-flags=-fno-exceptions \
--enable-default-pie \
- --enable-languages=c,c++ \
+ --enable-languages=c++ \
--enable-plugin \
--prefix=/opt/toolchain \
--target=$TARGET \
+ --with-mcmodel=kernel \
--with-newlib
make -j$(nproc) all-gcc