From 0d0dea1a8337595985c919d6329b01b38b0bd8d8 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Sun, 13 Jul 2025 15:43:47 +0200 Subject: build: import jOS toolchain config --- patches/gcc-14.2.0-x86_64-elf.patch | 10 ---------- patches/gcc-14.2.0-x86_64-pc-elf/0001-no-red-zone.patch | 15 +++++++++++++++ patches/gcc-14.3.0-x86_64-pc-elf/0001-no-red-zone.patch | 1 + 3 files changed, 16 insertions(+), 10 deletions(-) delete mode 100644 patches/gcc-14.2.0-x86_64-elf.patch create mode 100644 patches/gcc-14.2.0-x86_64-pc-elf/0001-no-red-zone.patch create mode 120000 patches/gcc-14.3.0-x86_64-pc-elf/0001-no-red-zone.patch (limited to 'patches') diff --git a/patches/gcc-14.2.0-x86_64-elf.patch b/patches/gcc-14.2.0-x86_64-elf.patch deleted file mode 100644 index 2a8d0a5..0000000 --- a/patches/gcc-14.2.0-x86_64-elf.patch +++ /dev/null @@ -1,10 +0,0 @@ ---- gcc/config.gcc 2024-08-01 10:17:14.000000000 +0200 -+++ gcc/config.gcc 2024-09-16 14:03:02.049140896 +0200 -@@ -1933,6 +1933,7 @@ - tm_file="${tm_file} i386/unix.h i386/att.h elfos.h newlib-stdint.h i386/i386elf.h" - ;; - x86_64-*-elf*) -+ tmake_file="${tmake_file} i386/t-x86_64-elf" - tm_file="${tm_file} i386/unix.h i386/att.h elfos.h newlib-stdint.h i386/i386elf.h i386/x86-64.h" - ;; - x86_64-*-rtems*) diff --git a/patches/gcc-14.2.0-x86_64-pc-elf/0001-no-red-zone.patch b/patches/gcc-14.2.0-x86_64-pc-elf/0001-no-red-zone.patch new file mode 100644 index 0000000..e488a6e --- /dev/null +++ b/patches/gcc-14.2.0-x86_64-pc-elf/0001-no-red-zone.patch @@ -0,0 +1,15 @@ +--- /dev/null ++++ gcc/config/i386/t-x86_64-pc-elf +@@ -0,0 +1,2 @@ ++MULTILIB_OPTIONS += mno-red-zone ++MULTILIB_DIRNAMES += no-red-zone +--- gcc/config.gcc 2024-08-01 10:17:14.000000000 +0200 ++++ gcc/config.gcc 2024-09-16 14:03:02.049140896 +0200 +@@ -1933,6 +1933,7 @@ + tm_file="${tm_file} i386/unix.h i386/att.h elfos.h newlib-stdint.h i386/i386elf.h" + ;; + x86_64-*-elf*) ++ tmake_file="${tmake_file} i386/t-x86_64-pc-elf" + tm_file="${tm_file} i386/unix.h i386/att.h elfos.h newlib-stdint.h i386/i386elf.h i386/x86-64.h" + ;; + x86_64-*-rtems*) diff --git a/patches/gcc-14.3.0-x86_64-pc-elf/0001-no-red-zone.patch b/patches/gcc-14.3.0-x86_64-pc-elf/0001-no-red-zone.patch new file mode 120000 index 0000000..e0b243d --- /dev/null +++ b/patches/gcc-14.3.0-x86_64-pc-elf/0001-no-red-zone.patch @@ -0,0 +1 @@ +../gcc-14.2.0-x86_64-pc-elf/0001-no-red-zone.patch \ No newline at end of file -- cgit v1.2.3