diff --git a/cross/gcc-aarch64/0001-posix_memalign.patch b/cross/gcc-aarch64/0001-posix_memalign.patch index 469693531..96fe91015 100644 --- a/cross/gcc-aarch64/0001-posix_memalign.patch +++ b/cross/gcc-aarch64/0001-posix_memalign.patch @@ -1,7 +1,7 @@ -From 5238749680d22a42e90dc3832ef1ad1c9a5f1c20 Mon Sep 17 00:00:00 2001 +From 3e5acbe356124aa5d8dde0635d652c065a553e7d Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Fri, 26 Jan 2018 20:32:50 +0000 -Subject: [PATCH 01/32] posix_memalign +Subject: [PATCH 01/33] posix_memalign --- gcc/config/i386/pmm_malloc.h | 9 +++++---- diff --git a/cross/gcc-aarch64/0002-gcc-poison-system-directories.patch b/cross/gcc-aarch64/0002-gcc-poison-system-directories.patch index 21ac0ed95..680fc5572 100644 --- a/cross/gcc-aarch64/0002-gcc-poison-system-directories.patch +++ b/cross/gcc-aarch64/0002-gcc-poison-system-directories.patch @@ -1,7 +1,7 @@ -From dc71cb9815d25a57430ef5d8e2a87312d8c3b467 Mon Sep 17 00:00:00 2001 +From f986a4a1224fa7d452b415d690aead8d356a7eae Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Fri, 29 Mar 2013 08:59:00 +0400 -Subject: [PATCH 02/32] gcc: poison-system-directories +Subject: [PATCH 02/33] gcc: poison-system-directories Add /sw/include and /opt/include based on the original zecke-no-host-includes.patch patch. The original patch checked for diff --git a/cross/gcc-aarch64/0003-specs-turn-on-Wl-z-now-by-default.patch b/cross/gcc-aarch64/0003-specs-turn-on-Wl-z-now-by-default.patch index 37e478aa3..f78ff8bb1 100644 --- a/cross/gcc-aarch64/0003-specs-turn-on-Wl-z-now-by-default.patch +++ b/cross/gcc-aarch64/0003-specs-turn-on-Wl-z-now-by-default.patch @@ -1,7 +1,7 @@ -From 95cd372c839d347b41e22605d569cca6a2119b85 Mon Sep 17 00:00:00 2001 +From 31e2b60000e779ef775daa306120eabcf987852a Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:45:49 +0000 -Subject: [PATCH 03/32] specs: turn on -Wl,-z,now by default +Subject: [PATCH 03/33] specs: turn on -Wl,-z,now by default Previously, we also used to turn on -z relro here, but we now build binutils with --enable-relro, which is functionally equivalent. diff --git a/cross/gcc-aarch64/0004-Turn-on-D_FORTIFY_SOURCE-2-by-default-for-C-C-ObjC-O.patch b/cross/gcc-aarch64/0004-Turn-on-D_FORTIFY_SOURCE-2-by-default-for-C-C-ObjC-O.patch index ce27b18db..4efa91b31 100644 --- a/cross/gcc-aarch64/0004-Turn-on-D_FORTIFY_SOURCE-2-by-default-for-C-C-ObjC-O.patch +++ b/cross/gcc-aarch64/0004-Turn-on-D_FORTIFY_SOURCE-2-by-default-for-C-C-ObjC-O.patch @@ -1,7 +1,7 @@ -From 12b0a32aa19334c1b5dd20c9cc3b0ca885e973ce Mon Sep 17 00:00:00 2001 +From 3b910da7d1e81bdd953e6d9ec82020e7b120353b Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:46:22 +0000 -Subject: [PATCH 04/32] Turn on -D_FORTIFY_SOURCE=2 by default for C, C++, +Subject: [PATCH 04/33] Turn on -D_FORTIFY_SOURCE=2 by default for C, C++, ObjC, ObjC++, if the optimization level is > 0 --- diff --git a/cross/gcc-aarch64/0005-On-linux-targets-pass-as-needed-by-default-to-the-li.patch b/cross/gcc-aarch64/0005-On-linux-targets-pass-as-needed-by-default-to-the-li.patch index 8a54c607a..fa6936d39 100644 --- a/cross/gcc-aarch64/0005-On-linux-targets-pass-as-needed-by-default-to-the-li.patch +++ b/cross/gcc-aarch64/0005-On-linux-targets-pass-as-needed-by-default-to-the-li.patch @@ -1,7 +1,7 @@ -From 8693307d930c085828c921023219d4c1459a32e9 Mon Sep 17 00:00:00 2001 +From 9c3a2882b1932296ccb1d0ed2900cf046f998a26 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:46:56 +0000 -Subject: [PATCH 05/32] On linux targets pass --as-needed by default to the +Subject: [PATCH 05/33] On linux targets pass --as-needed by default to the linker, but always link the sanitizer libraries with --no-as-needed. --- diff --git a/cross/gcc-aarch64/0006-Enable-Wformat-and-Wformat-security-by-default.patch b/cross/gcc-aarch64/0006-Enable-Wformat-and-Wformat-security-by-default.patch index 1743495cc..3476e31db 100644 --- a/cross/gcc-aarch64/0006-Enable-Wformat-and-Wformat-security-by-default.patch +++ b/cross/gcc-aarch64/0006-Enable-Wformat-and-Wformat-security-by-default.patch @@ -1,7 +1,7 @@ -From ec4e37d755110ffb5a4bdba54db89ea06ff3926a Mon Sep 17 00:00:00 2001 +From 288cb2be3abe07dcf2737ed3ac07e93573262bc4 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:47:43 +0000 -Subject: [PATCH 06/32] Enable -Wformat and -Wformat-security by default. +Subject: [PATCH 06/33] Enable -Wformat and -Wformat-security by default. --- gcc/c-family/c.opt | 4 ++-- diff --git a/cross/gcc-aarch64/0007-Enable-Wtrampolines-by-default.patch b/cross/gcc-aarch64/0007-Enable-Wtrampolines-by-default.patch index 87532e376..05442fa64 100644 --- a/cross/gcc-aarch64/0007-Enable-Wtrampolines-by-default.patch +++ b/cross/gcc-aarch64/0007-Enable-Wtrampolines-by-default.patch @@ -1,7 +1,7 @@ -From fdc4c95806cb57e98785c991c6ae9d9f2183a914 Mon Sep 17 00:00:00 2001 +From 93e44f7c7b1f11c1f714d6c384b0d39a191ac18a Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:48:24 +0000 -Subject: [PATCH 07/32] Enable -Wtrampolines by default. +Subject: [PATCH 07/33] Enable -Wtrampolines by default. --- gcc/common.opt | 2 +- diff --git a/cross/gcc-aarch64/0008-Disable-ssp-on-nostdlib-nodefaultlibs-and-ffreestand.patch b/cross/gcc-aarch64/0008-Disable-ssp-on-nostdlib-nodefaultlibs-and-ffreestand.patch index 8e036c843..f76353ed8 100644 --- a/cross/gcc-aarch64/0008-Disable-ssp-on-nostdlib-nodefaultlibs-and-ffreestand.patch +++ b/cross/gcc-aarch64/0008-Disable-ssp-on-nostdlib-nodefaultlibs-and-ffreestand.patch @@ -1,7 +1,7 @@ -From 547ed1d35f0fa8c04cefb8708c4a148f86ed3397 Mon Sep 17 00:00:00 2001 +From 7aa93d6d9a63c7bedf1e033f6d040e95038537e7 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:49:40 +0000 -Subject: [PATCH 08/32] Disable ssp on -nostdlib, -nodefaultlibs and +Subject: [PATCH 08/33] Disable ssp on -nostdlib, -nodefaultlibs and -ffreestanding Change the buffer size. --- diff --git a/cross/gcc-aarch64/0009-Ensure-that-msgfmt-doesn-t-encounter-problems-during.patch b/cross/gcc-aarch64/0009-Ensure-that-msgfmt-doesn-t-encounter-problems-during.patch index c8ce3908d..ef9c84b0c 100644 --- a/cross/gcc-aarch64/0009-Ensure-that-msgfmt-doesn-t-encounter-problems-during.patch +++ b/cross/gcc-aarch64/0009-Ensure-that-msgfmt-doesn-t-encounter-problems-during.patch @@ -1,7 +1,7 @@ -From ee2e986e85a0400402f006ec2ddf2435cac621ba Mon Sep 17 00:00:00 2001 +From e44b295b5b0b917c0b47085f60466a37f890e1c7 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:50:33 +0000 -Subject: [PATCH 09/32] Ensure that msgfmt doesn't encounter problems during +Subject: [PATCH 09/33] Ensure that msgfmt doesn't encounter problems during gcc bootstrapping. Solves error messages like the following: diff --git a/cross/gcc-aarch64/0010-Don-t-declare-asprintf-if-defined-as-a-macro.patch b/cross/gcc-aarch64/0010-Don-t-declare-asprintf-if-defined-as-a-macro.patch index 4e2992549..16a7279a0 100644 --- a/cross/gcc-aarch64/0010-Don-t-declare-asprintf-if-defined-as-a-macro.patch +++ b/cross/gcc-aarch64/0010-Don-t-declare-asprintf-if-defined-as-a-macro.patch @@ -1,7 +1,7 @@ -From 2ed284234b08b5018fb542c784e6b8757b1e4967 Mon Sep 17 00:00:00 2001 +From f041dcd8f775e03b85a49e3aeef0870e2333b10e Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:52:07 +0000 -Subject: [PATCH 10/32] Don't declare asprintf if defined as a macro. +Subject: [PATCH 10/33] Don't declare asprintf if defined as a macro. --- include/libiberty.h | 3 +++ diff --git a/cross/gcc-aarch64/0011-libiberty-copy-PIC-objects-during-build-process.patch b/cross/gcc-aarch64/0011-libiberty-copy-PIC-objects-during-build-process.patch index fecb28d30..5d6009522 100644 --- a/cross/gcc-aarch64/0011-libiberty-copy-PIC-objects-during-build-process.patch +++ b/cross/gcc-aarch64/0011-libiberty-copy-PIC-objects-during-build-process.patch @@ -1,7 +1,7 @@ -From 52544d0abdcf63f33446f880fcaae1d0aa589a81 Mon Sep 17 00:00:00 2001 +From 6fc13fce114648b1a64e658b469a4697382d18bb Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:53:00 +0000 -Subject: [PATCH 11/32] libiberty: copy PIC objects during build process +Subject: [PATCH 11/33] libiberty: copy PIC objects during build process --- libiberty/Makefile.in | 1 + diff --git a/cross/gcc-aarch64/0012-libgcc_s.patch b/cross/gcc-aarch64/0012-libgcc_s.patch index 6723faf13..354f594b2 100644 --- a/cross/gcc-aarch64/0012-libgcc_s.patch +++ b/cross/gcc-aarch64/0012-libgcc_s.patch @@ -1,7 +1,7 @@ -From eff4677a5511567ab3d550a5989ee0805fc3e1a7 Mon Sep 17 00:00:00 2001 +From 6a1955bbf49836ad99b23501f42283842e01761b Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Sat, 24 Oct 2015 20:09:53 +0000 -Subject: [PATCH 12/32] libgcc_s +Subject: [PATCH 12/33] libgcc_s --- gcc/config/i386/i386-expand.cc | 4 ++-- diff --git a/cross/gcc-aarch64/0013-nopie.patch b/cross/gcc-aarch64/0013-nopie.patch index db80a043d..c73cd12bb 100644 --- a/cross/gcc-aarch64/0013-nopie.patch +++ b/cross/gcc-aarch64/0013-nopie.patch @@ -1,7 +1,7 @@ -From 8af4ddcecc9dc43d714798d255a21e12985721b9 Mon Sep 17 00:00:00 2001 +From 558e95aa2b0f3bbf416e1bb572e5f47bddc8601c Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Sat, 7 Nov 2015 02:08:05 +0000 -Subject: [PATCH 13/32] nopie +Subject: [PATCH 13/33] nopie --- gcc/configure | 27 +++++++++++++++++++++++++++ diff --git a/cross/gcc-aarch64/0014-ada-fix-shared-linking.patch b/cross/gcc-aarch64/0014-ada-fix-shared-linking.patch index 46c1814e6..b31f91b67 100644 --- a/cross/gcc-aarch64/0014-ada-fix-shared-linking.patch +++ b/cross/gcc-aarch64/0014-ada-fix-shared-linking.patch @@ -1,7 +1,7 @@ -From 1330c37f63c0388480cfa369df2b437e9c8cc878 Mon Sep 17 00:00:00 2001 +From ecad19db42776c536bd4f6033ec1891ffae03720 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:59:16 +0000 -Subject: [PATCH 14/32] ada: fix shared linking +Subject: [PATCH 14/33] ada: fix shared linking --- gcc/ada/link.c | 12 ++++++------ diff --git a/cross/gcc-aarch64/0015-build-fix-CXXFLAGS_FOR_BUILD-passing.patch b/cross/gcc-aarch64/0015-build-fix-CXXFLAGS_FOR_BUILD-passing.patch index 951158940..3aca83c4b 100644 --- a/cross/gcc-aarch64/0015-build-fix-CXXFLAGS_FOR_BUILD-passing.patch +++ b/cross/gcc-aarch64/0015-build-fix-CXXFLAGS_FOR_BUILD-passing.patch @@ -1,7 +1,7 @@ -From ceb43810c502b238cb487af6e84b1c80f2105f1a Mon Sep 17 00:00:00 2001 +From 8500b4cdd039c16a02a8acabd124b92865871979 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:59:43 +0000 -Subject: [PATCH 15/32] build: fix CXXFLAGS_FOR_BUILD passing +Subject: [PATCH 15/33] build: fix CXXFLAGS_FOR_BUILD passing --- Makefile.in | 1 + diff --git a/cross/gcc-aarch64/0016-add-fortify-headers-paths.patch b/cross/gcc-aarch64/0016-add-fortify-headers-paths.patch index 8e8a0b74e..dfdfa414d 100644 --- a/cross/gcc-aarch64/0016-add-fortify-headers-paths.patch +++ b/cross/gcc-aarch64/0016-add-fortify-headers-paths.patch @@ -1,7 +1,7 @@ -From ebc8167db85bc37a59f02fec6904829652989564 Mon Sep 17 00:00:00 2001 +From e893ad827215a7c090a835e20a81559f4044fb47 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 07:01:06 +0000 -Subject: [PATCH 16/32] add fortify-headers paths +Subject: [PATCH 16/33] add fortify-headers paths --- gcc/config/linux.h | 2 ++ diff --git a/cross/gcc-aarch64/0017-Alpine-musl-package-provides-libssp_nonshared.a.-We-.patch b/cross/gcc-aarch64/0017-Alpine-musl-package-provides-libssp_nonshared.a.-We-.patch index e3c8a07b8..656c69142 100644 --- a/cross/gcc-aarch64/0017-Alpine-musl-package-provides-libssp_nonshared.a.-We-.patch +++ b/cross/gcc-aarch64/0017-Alpine-musl-package-provides-libssp_nonshared.a.-We-.patch @@ -1,7 +1,7 @@ -From 86a566d0ed9da32b5f3a6ac48999ebbac6dce4a5 Mon Sep 17 00:00:00 2001 +From 064afc74f18f2a00771fc2600029a713b8708845 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20Ter=C3=A4s?= Date: Fri, 21 Aug 2020 07:03:00 +0000 -Subject: [PATCH 17/32] Alpine musl package provides libssp_nonshared.a. We +Subject: [PATCH 17/33] Alpine musl package provides libssp_nonshared.a. We link to it unconditionally, as otherwise we get link failures if some objects are -fstack-protector built and final link happens with -fno-stack-protector. This seems to be the common case when bootstrapping gcc, the piepatches do diff --git a/cross/gcc-aarch64/0018-DP-Use-push-state-pop-state-for-gold-as-well-when-li.patch b/cross/gcc-aarch64/0018-DP-Use-push-state-pop-state-for-gold-as-well-when-li.patch index 2a2b90fca..001db4857 100644 --- a/cross/gcc-aarch64/0018-DP-Use-push-state-pop-state-for-gold-as-well-when-li.patch +++ b/cross/gcc-aarch64/0018-DP-Use-push-state-pop-state-for-gold-as-well-when-li.patch @@ -1,7 +1,7 @@ -From d113a7974d55a8c5e71f0d72202db3e303245d2b Mon Sep 17 00:00:00 2001 +From 45a98ce1f1702424aba4271f7f7570e43a354101 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 07:03:42 +0000 -Subject: [PATCH 18/32] DP: Use --push-state/--pop-state for gold as well when +Subject: [PATCH 18/33] DP: Use --push-state/--pop-state for gold as well when linking libtsan. --- diff --git a/cross/gcc-aarch64/0019-aarch64-disable-multilib-support.patch b/cross/gcc-aarch64/0019-aarch64-disable-multilib-support.patch index 100736769..19a1afabf 100644 --- a/cross/gcc-aarch64/0019-aarch64-disable-multilib-support.patch +++ b/cross/gcc-aarch64/0019-aarch64-disable-multilib-support.patch @@ -1,7 +1,7 @@ -From 3ba91105e2299d591d817164e2c98b905460892d Mon Sep 17 00:00:00 2001 +From 6a2e902dc8abcfd44522b9224fd759d038db51f5 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Thu, 6 Jan 2022 03:12:55 +0000 -Subject: [PATCH 19/32] aarch64: disable multilib support +Subject: [PATCH 19/33] aarch64: disable multilib support multilib is unsupported on Alpine GCC --- diff --git a/cross/gcc-aarch64/0020-s390x-disable-multilib-support.patch b/cross/gcc-aarch64/0020-s390x-disable-multilib-support.patch index 897c28bc3..2817a092e 100644 --- a/cross/gcc-aarch64/0020-s390x-disable-multilib-support.patch +++ b/cross/gcc-aarch64/0020-s390x-disable-multilib-support.patch @@ -1,7 +1,7 @@ -From ac6348347f14ba8274655aa6af27ccfbf89a437f Mon Sep 17 00:00:00 2001 +From 6e7c72ee05353a284d9c9809035e7ff488b4b8c1 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Thu, 6 Jan 2022 03:13:59 +0000 -Subject: [PATCH 20/32] s390x: disable multilib support +Subject: [PATCH 20/33] s390x: disable multilib support multilib is not supported on Alpine GCC at present --- diff --git a/cross/gcc-aarch64/0021-ppc64-le-disable-multilib-support.patch b/cross/gcc-aarch64/0021-ppc64-le-disable-multilib-support.patch index 7de6bf95d..2dc2bbc36 100644 --- a/cross/gcc-aarch64/0021-ppc64-le-disable-multilib-support.patch +++ b/cross/gcc-aarch64/0021-ppc64-le-disable-multilib-support.patch @@ -1,7 +1,7 @@ -From 969630b9b930860077fcc9b08972d18b40518828 Mon Sep 17 00:00:00 2001 +From 44655aa3be8d5354fb82a42317a9ac6ac1b50164 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Thu, 6 Jan 2022 03:14:33 +0000 -Subject: [PATCH 21/32] ppc64[le]: disable multilib support +Subject: [PATCH 21/33] ppc64[le]: disable multilib support multilib is not presently supported on Alpine GCC --- diff --git a/cross/gcc-aarch64/0022-x86_64-disable-multilib-support.patch b/cross/gcc-aarch64/0022-x86_64-disable-multilib-support.patch index 566951533..d69ec3167 100644 --- a/cross/gcc-aarch64/0022-x86_64-disable-multilib-support.patch +++ b/cross/gcc-aarch64/0022-x86_64-disable-multilib-support.patch @@ -1,7 +1,7 @@ -From a34c8e7255f71228e4bef4d51fbb791a10013658 Mon Sep 17 00:00:00 2001 +From 5f79236c49bd0c2c36440f0ef83cea02d52fcaaf Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Thu, 6 Jan 2022 03:14:54 +0000 -Subject: [PATCH 22/32] x86_64: disable multilib support +Subject: [PATCH 22/33] x86_64: disable multilib support multilib is not presently supported on Alpine GCC --- diff --git a/cross/gcc-aarch64/0023-riscv-disable-multilib-support.patch b/cross/gcc-aarch64/0023-riscv-disable-multilib-support.patch index f81c30a61..7b5c9a56d 100644 --- a/cross/gcc-aarch64/0023-riscv-disable-multilib-support.patch +++ b/cross/gcc-aarch64/0023-riscv-disable-multilib-support.patch @@ -1,7 +1,7 @@ -From abf619dfadb883809457037a52d5eb77acf25dd5 Mon Sep 17 00:00:00 2001 +From 4605e64b3a076411f2f8134256c400eb58bcc1c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Tempel?= Date: Mon, 3 Jan 2022 07:14:48 +0100 -Subject: [PATCH 23/32] riscv: disable multilib support +Subject: [PATCH 23/33] riscv: disable multilib support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit diff --git a/cross/gcc-aarch64/0024-always-build-libgcc_eh.a.patch b/cross/gcc-aarch64/0024-always-build-libgcc_eh.a.patch index 454279070..b1ab2e715 100644 --- a/cross/gcc-aarch64/0024-always-build-libgcc_eh.a.patch +++ b/cross/gcc-aarch64/0024-always-build-libgcc_eh.a.patch @@ -1,7 +1,7 @@ -From fc731db4cee01c38c1454e55ec51cb78d6713188 Mon Sep 17 00:00:00 2001 +From a178cfeb975d79bb9b9fd877ab4c6e05d10b147e Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 07:05:41 +0000 -Subject: [PATCH 24/32] always build libgcc_eh.a +Subject: [PATCH 24/33] always build libgcc_eh.a highly inspired by: http://landley.net/hg/aboriginal/file/7e0747a665ab/sources/patches/gcc-core-libgcceh.patch diff --git a/cross/gcc-aarch64/0025-ada-libgnarl-compatibility-for-musl.patch b/cross/gcc-aarch64/0025-ada-libgnarl-compatibility-for-musl.patch index 1cc9c1bd3..39d77413f 100644 --- a/cross/gcc-aarch64/0025-ada-libgnarl-compatibility-for-musl.patch +++ b/cross/gcc-aarch64/0025-ada-libgnarl-compatibility-for-musl.patch @@ -1,7 +1,7 @@ -From e3271b1970ecb6dab612333ec93c8bd2107cc598 Mon Sep 17 00:00:00 2001 +From 5bc3deb9bc2679ad4f6f189a65e3643b550587a1 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 07:06:30 +0000 -Subject: [PATCH 25/32] ada: libgnarl compatibility for musl +Subject: [PATCH 25/33] ada: libgnarl compatibility for musl --- gcc/ada/libgnarl/s-osinte__linux.ads | 11 ------ diff --git a/cross/gcc-aarch64/0026-ada-musl-support-fixes.patch b/cross/gcc-aarch64/0026-ada-musl-support-fixes.patch index 8b52c83e8..c36ff6237 100644 --- a/cross/gcc-aarch64/0026-ada-musl-support-fixes.patch +++ b/cross/gcc-aarch64/0026-ada-musl-support-fixes.patch @@ -1,7 +1,7 @@ -From fdfa9e6dfcc384bce6e525a9ce3a280b808b8312 Mon Sep 17 00:00:00 2001 +From e1e6dccc9124e0907c5ae174d20acb3bad87e633 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 07:07:48 +0000 -Subject: [PATCH 26/32] ada: musl support fixes +Subject: [PATCH 26/33] ada: musl support fixes --- gcc/ada/Makefile.rtl | 10 +++++----- diff --git a/cross/gcc-aarch64/0027-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch b/cross/gcc-aarch64/0027-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch index c1a7521b5..febd64005 100644 --- a/cross/gcc-aarch64/0027-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch +++ b/cross/gcc-aarch64/0027-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch @@ -1,7 +1,7 @@ -From 4a8793a2233c4bd91cd33958fff1420c4bf19333 Mon Sep 17 00:00:00 2001 +From 9506e729f0e4f66f4018fbfc5340a568e8520264 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Wed, 9 Dec 2020 07:42:06 +0000 -Subject: [PATCH 27/32] configure: Add --enable-autolink-libatomic, use in +Subject: [PATCH 27/33] configure: Add --enable-autolink-libatomic, use in LINK_GCC_C_SEQUENCE_SPEC [PR81358] This fixes issues with RISC-V. diff --git a/cross/gcc-aarch64/0028-configure-fix-detection-of-atomic-builtins-in-libato.patch b/cross/gcc-aarch64/0028-configure-fix-detection-of-atomic-builtins-in-libato.patch index b2959c347..939f76b7b 100644 --- a/cross/gcc-aarch64/0028-configure-fix-detection-of-atomic-builtins-in-libato.patch +++ b/cross/gcc-aarch64/0028-configure-fix-detection-of-atomic-builtins-in-libato.patch @@ -1,7 +1,7 @@ -From c9b40cfd31fd166e7481480218c074ba6b1214cb Mon Sep 17 00:00:00 2001 +From 966da83d0d75482a1489804593ae61f3f8e3b385 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Tempel?= Date: Sun, 29 Aug 2021 12:23:34 +0200 -Subject: [PATCH 28/32] configure: fix detection of atomic builtins in +Subject: [PATCH 28/33] configure: fix detection of atomic builtins in libatomic configure script Alpine's --enable-autolink-libatomic (which is enabled for riscv64 by diff --git a/cross/gcc-aarch64/0029-libstdc-do-not-throw-exceptions-for-non-C-locales-on.patch b/cross/gcc-aarch64/0029-libstdc-do-not-throw-exceptions-for-non-C-locales-on.patch index 3d47c6531..4d13cd6e6 100644 --- a/cross/gcc-aarch64/0029-libstdc-do-not-throw-exceptions-for-non-C-locales-on.patch +++ b/cross/gcc-aarch64/0029-libstdc-do-not-throw-exceptions-for-non-C-locales-on.patch @@ -1,7 +1,7 @@ -From e2b9546b31d33f7d13ba675171025cf30ae2e21e Mon Sep 17 00:00:00 2001 +From e74f4b3a10d96f06b15df9d9b61d5b10a84ec084 Mon Sep 17 00:00:00 2001 From: Samuel Holland Date: Thu, 30 Jun 2022 16:44:51 +0000 -Subject: [PATCH 29/32] libstdc++: do not throw exceptions for non-C locales on +Subject: [PATCH 29/33] libstdc++: do not throw exceptions for non-C locales on musl targets --- diff --git a/cross/gcc-aarch64/0030-gdc-unconditionally-link-libgphobos-against-libucont.patch b/cross/gcc-aarch64/0030-gdc-unconditionally-link-libgphobos-against-libucont.patch index d5fc03179..83f1eb06f 100644 --- a/cross/gcc-aarch64/0030-gdc-unconditionally-link-libgphobos-against-libucont.patch +++ b/cross/gcc-aarch64/0030-gdc-unconditionally-link-libgphobos-against-libucont.patch @@ -1,7 +1,7 @@ -From f036f4b4dc5476429e5485cdc5cc15c29da4d7e1 Mon Sep 17 00:00:00 2001 +From bdc2699f0284e59842e5d3a39fc426550b4ba0e8 Mon Sep 17 00:00:00 2001 From: Mathias LANG Date: Mon, 17 Jan 2022 03:49:21 +0000 -Subject: [PATCH 30/32] gdc: unconditionally link libgphobos against +Subject: [PATCH 30/33] gdc: unconditionally link libgphobos against libucontext ref: alpine/aports#13422 diff --git a/cross/gcc-aarch64/0031-druntime-link-against-libucontext-on-all-platforms.patch b/cross/gcc-aarch64/0031-druntime-link-against-libucontext-on-all-platforms.patch index e07474deb..be9959ccf 100644 --- a/cross/gcc-aarch64/0031-druntime-link-against-libucontext-on-all-platforms.patch +++ b/cross/gcc-aarch64/0031-druntime-link-against-libucontext-on-all-platforms.patch @@ -1,7 +1,7 @@ -From 3b27d7eebc87675a377a68b8bb67bdd3399de67f Mon Sep 17 00:00:00 2001 +From 82780d18bfcb7dabc215d4b89b1187cb253e15f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Tempel?= Date: Sat, 16 Jul 2022 09:21:11 +0200 -Subject: [PATCH 31/32] druntime: link against libucontext on all platforms +Subject: [PATCH 31/33] druntime: link against libucontext on all platforms On musl-based Linux distributions, swapcontext etc. are not provided by musl but instead by libucontext. Hence, we _always_ need to link against diff --git a/cross/gcc-aarch64/0032-libgnat-time_t-is-always-64-bit-on-musl-libc.patch b/cross/gcc-aarch64/0032-libgnat-time_t-is-always-64-bit-on-musl-libc.patch index bd28ec3b2..4f02e6ce5 100644 --- a/cross/gcc-aarch64/0032-libgnat-time_t-is-always-64-bit-on-musl-libc.patch +++ b/cross/gcc-aarch64/0032-libgnat-time_t-is-always-64-bit-on-musl-libc.patch @@ -1,7 +1,7 @@ -From 5081b2b7526e11a4877548a2348c53798ba3de7b Mon Sep 17 00:00:00 2001 +From 32fc6be0b339983e31f6285dbc565b906ec983d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Tempel?= Date: Tue, 19 Jul 2022 14:54:07 +0200 -Subject: [PATCH 32/32] libgnat: time_t is always 64-bit on musl libc +Subject: [PATCH 32/33] libgnat: time_t is always 64-bit on musl libc --- gcc/ada/libgnat/s-parame.ads | 2 +- diff --git a/cross/gcc-aarch64/0033-libphobos-do-not-use-LFS64-symbols.patch b/cross/gcc-aarch64/0033-libphobos-do-not-use-LFS64-symbols.patch new file mode 100644 index 000000000..6ccd1ae98 --- /dev/null +++ b/cross/gcc-aarch64/0033-libphobos-do-not-use-LFS64-symbols.patch @@ -0,0 +1,30 @@ +From b5e9f810a8a5963104dd1897c3276f60786f9edb Mon Sep 17 00:00:00 2001 +From: psykose +Date: Mon, 29 May 2023 15:33:11 +0000 +Subject: [PATCH 33/33] libphobos: do not use LFS64 symbols + +musl does not have these since 1.2.4, we can't use the compat interfaces. +--- + libphobos/libdruntime/core/sys/posix/sys/mman.d | 6 +----- + 1 file changed, 1 insertion(+), 5 deletions(-) + +diff --git a/libphobos/libdruntime/core/sys/posix/sys/mman.d b/libphobos/libdruntime/core/sys/posix/sys/mman.d +index 0d3d517d69a..323aa0af72d 100644 +--- a/libphobos/libdruntime/core/sys/posix/sys/mman.d ++++ b/libphobos/libdruntime/core/sys/posix/sys/mman.d +@@ -293,11 +293,7 @@ else version (CRuntime_Bionic) + } + else version (CRuntime_Musl) + { +- static if (__USE_LARGEFILE64) void* mmap64(void*, size_t, int, int, int, off_t); +- static if (__USE_FILE_OFFSET64) +- alias mmap = mmap64; +- else +- void* mmap(void*, size_t, int, int, int, off_t); ++ void* mmap(void*, size_t, int, int, int, off_t); + int munmap(void*, size_t); + } + else version (CRuntime_UClibc) +-- +2.40.1 + diff --git a/cross/gcc-aarch64/APKBUILD b/cross/gcc-aarch64/APKBUILD index 3daf9df4f..c68e9fecf 100644 --- a/cross/gcc-aarch64/APKBUILD +++ b/cross/gcc-aarch64/APKBUILD @@ -34,7 +34,7 @@ _pkgsnap="${pkgver##*_git}" [ "$CHOST" != "$CTARGET" ] && _target="-$CTARGET_ARCH" || _target="" pkgname=gcc-aarch64 -pkgrel=0 +pkgrel=1 pkgdesc="Stage2 cross-compiler for aarch64" url="https://gcc.gnu.org" arch="x86_64" @@ -266,6 +266,7 @@ source="https://dev.alpinelinux.org/archive/gcc/${_pkgbase%%.*}-$_pkgsnap/gcc-${ 0030-gdc-unconditionally-link-libgphobos-against-libucont.patch 0031-druntime-link-against-libucontext-on-all-platforms.patch 0032-libgnat-time_t-is-always-64-bit-on-musl-libc.patch + 0033-libphobos-do-not-use-LFS64-symbols.patch " # we build out-of-tree @@ -780,36 +781,37 @@ gdb() { sha512sums=" bcad5977ff9b0fe66df53e985ddcf0be1727860f76025a09c2ea786bd6d4c7f1129776ad2e52912c16824fb5d870188d44a24125db78603d78da75c13d207311 gcc-13-20230527.tar.xz -a39a2485fcffb05757e8a9100985a4c87cc472028ad756e1992747d3e737bd7526d2cc054f7f0e7c24708d2ba9e898eaebf3f2db424a1895daf796e126772e5e 0001-posix_memalign.patch -a7bf2f69dc983c87dcc480b7c03d80d26128c89afbfea7f035694d7076aacf9361d39b734de5353b52e4e448e84aac68812006da42664bae661b66d4f8ea5098 0002-gcc-poison-system-directories.patch -a0d4f99e0b3bc0c653d9e23b91c602d1e1ce22d67731aaf76ee267654fcffdfdfc2982b4e99ef6b5523def4cfd5a96e2a20aa5f9efa5256315e824dac3bab806 0003-specs-turn-on-Wl-z-now-by-default.patch -ae94863ffecb30a40f3fd79f8b31106bbf8a17dbf13c6036847f1ba2726cc96f2a957f4694f3c880c06ee1dc8fbd990e957b9b55b0275e7d8cc7df10286942fa 0004-Turn-on-D_FORTIFY_SOURCE-2-by-default-for-C-C-ObjC-O.patch -2356813aec1ff0a3e82fedfe5dbd0f8c6d442cf567851db40077f98d659b7d048a5349e1ac9c056384a663dad08782d80e29675a457c503200b274a50a6db72d 0005-On-linux-targets-pass-as-needed-by-default-to-the-li.patch -c9ee725e69b20f15029920bc187178fbb1c6f0375f16ea1a1052187e591569618c93b108b0f4c387530d976e5daba607b9b76e5ec14a776799324ce7f7c3b11d 0006-Enable-Wformat-and-Wformat-security-by-default.patch -70fe923321aa50bd4bf9b67d3bb872e03ecd5dd9669e783d7893513c0c86aaca6cac39c7dcc5818bfd4e5ba59f7e2b2e790ac87fcb0dc348c543c15bbb3f7064 0007-Enable-Wtrampolines-by-default.patch -fa3106eb878ea48479f3145c837b4bb3e563edb9e0535b833f5d7006507af7427902b45c56751c8220eb828e02219e4c54835aa4c0c6eebf797bc29d3d9a7036 0008-Disable-ssp-on-nostdlib-nodefaultlibs-and-ffreestand.patch -8054b3fb3b9e53000fb00229675b6408defac71f38fceff78372e154990540a23b1790cd7b30a61bfd2ae982cc7c9c8c0405398173abd5618e1814d3ccd85ce9 0009-Ensure-that-msgfmt-doesn-t-encounter-problems-during.patch -1591ba8c8e873d3e38da61038df0b0da0594f15dd8659c1a2a3f834d55599fc7adab18713c26bcfe389a023dc12d7e00231c4b6b61f6b23ff602c8360d459115 0010-Don-t-declare-asprintf-if-defined-as-a-macro.patch -4d03d0bcb31e7a9e171ad408514ec4b1f90783891345bfbf65e513798271b1bbca41a7da616a4ae947a6ba1343a0df9b95233fa202eec70e88fec485841f2413 0011-libiberty-copy-PIC-objects-during-build-process.patch -62574f57043a24ebc644dd761aa46334071c6f0e721375a83f36099b2514dcc7df0b2900fcd52dee7754664e3f59f7686d8b39bf9df5c61893206f34f485cb49 0012-libgcc_s.patch -342782bdaaed8107758345fddb01be3df9e880af235f40c598d46a35c9b1499b7ca10d968f381af168886500aca5a155175d1576f1c30a00555da7467b9d1ccc 0013-nopie.patch -e65bae2cce0e17586384b100ef3dbde232d9f7809cfd40dedb466a24ff2d87b92d68b1a02fe29ec958561bad49658c6a474eae32dd2ee151715808cb5bbfd1a9 0014-ada-fix-shared-linking.patch -d23962505d7bfa99180edfe727df80e4b5d101697537d818327d9e836e90305b16de95729c70268150b55268d01ad5f1d92b70a0a056884f70abf5c4d5870e27 0015-build-fix-CXXFLAGS_FOR_BUILD-passing.patch -a4621dca1edb35e2648a348240bd6790e49b9db1fe7b9f81777222d4b1b241b3ee56a4fca9a02964a00ccc4bd291e37d5911fd142d55002424cd9b9e39f7f98f 0016-add-fortify-headers-paths.patch -3ab96307b31a45e40e174986d13bba620f91954738d84f02ed024854a2cabebf5e6e62589c7006097eb4fb76d5ec526589a877cb8c01f90e5b24819fb191c182 0017-Alpine-musl-package-provides-libssp_nonshared.a.-We-.patch -da8b091796740d315f2e23cc63820f1f5ed242f5ce04acf1603fa308b6f3e09088b6976a984180ff54cefdfa4b279706e1ef5df675c0644028fbf3c948ee6e37 0018-DP-Use-push-state-pop-state-for-gold-as-well-when-li.patch -39fec69162c86160ee24030c9f14303dc8aac3341f1a8eabb23d1db58c63a3e7252b5b19172ace6730064a9bf1a848d83882f59b4ada319de46dc99ffbd30c83 0019-aarch64-disable-multilib-support.patch -da2da38d118213567cfbe7c81a8c60deff8e77306b4d5e44d208dfcb6ebc7f29c3964106ebf3dd130edb8a343cc7ecddb3314c14488a429301dbf4750edc65ea 0020-s390x-disable-multilib-support.patch -d74ba03a6da1bcc18e70f017616ab2a1b901e8d04dcb6ea994420aecd042378ec440652ba1168b05a40ddff431ae5b69a19148e928fa70e3e15ba91a03224fad 0021-ppc64-le-disable-multilib-support.patch -828281a2e7404eedfd7a9a90a553ca7e4eab2a19d2a442faa69c3c2ecefe1a3750426bf5fe6d421dedbfba83feddbba04cb6938658d15110b4007813319713c0 0022-x86_64-disable-multilib-support.patch -c7d76f6d987e51e488e404ca75a4c44ed35be6fda925cf0f4cfc9d85e71df6b034d514fdd2748e26d889f8ee30a252224096241348cd06516f2469a3ed6a6a35 0023-riscv-disable-multilib-support.patch -42d9cce946d51d046a96930335915c927d2bb846d6cff685351f58a1006eb5f831b0fd928091df17ed5d4ac1efbbd359b54c325c40e70737d0302d22c8262606 0024-always-build-libgcc_eh.a.patch -c45c449e5304a7483b1141f87a53ab4658402dec8fa5d5116fa7a5e4bebba322da3214cf85c9b25e1c6d040ec81c0094b56a1ed4eefbcde91235816aa0159c6e 0025-ada-libgnarl-compatibility-for-musl.patch -e09ef88df90c4b484ab4172d7ac68c1defd9f1897fadfcb23572e2829e0f795f3eeb1e5ceeb6aac76cab938a0962371e99c168dcf1c2c4c31c8a8b4fa774dc3e 0026-ada-musl-support-fixes.patch -0661fe9d2a61d4de8d9862d6d936bad8236f9ce679b5e40eea7d54b042a7f860f21103e489a8c7a2b12b1e368194ffeb9b4672d7086ebf4189c77f0a27f27a71 0027-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch -68da13272861a0b3f33022350135660af9a060d03529b610dddf540fb77050647934f1a463c681d1556fa0005b6c16fe76cad285667d1349d5be50ccc83c530e 0028-configure-fix-detection-of-atomic-builtins-in-libato.patch -f638c4d7a3fb54d5fd76b7e9b49d8dd1041347409f842453bf862586e2770d595aa9e58f8c1ec45e3c37235d5e74b7327f4610a3cad81c0a757a1271e5a0e572 0029-libstdc-do-not-throw-exceptions-for-non-C-locales-on.patch -f6f2971f4e1bc58c0aeb2a62d9ad551a0fe855b9086f308dce2bb713214415c9679e8e6547290b1514dfd3bc7296d3dfdb7c2964289bbec737984a7810e5ef5d 0030-gdc-unconditionally-link-libgphobos-against-libucont.patch -ab26344341f5e75673e3a95590fb59fde3ee681949c3004e93ef04af9f1fe2d063c22fc21d14882808d3331ce9eeb135a33b87aeed4d3bf74cc9b087ac56610e 0031-druntime-link-against-libucontext-on-all-platforms.patch -5dfdd7645ba5090ac46e025ce3ce629cbf612518654dced2159e0a621d0ef8e231514bad4746aa8863e544077502d4842486b978a0c3857c4ad48b20c49ef2d1 0032-libgnat-time_t-is-always-64-bit-on-musl-libc.patch +af3d297e6e6aa9076fd09d128d72d72cb9c225ee377f3c65cc7647620b956ac463e8f744c808b045102ab7ed131cbaa3d511e121e5c820ac93f29374bb1f4281 0001-posix_memalign.patch +1be15c3740749731e606eed65f99c274fca2072cc8c907f036f44f3f03047af356fd2f1b2b5b8a082dac6f9046998dde400f8acb4046d14702dace7d976ff78f 0002-gcc-poison-system-directories.patch +a43fd3091f7cecba66f6904d4241a3d04b084c6eab820f34d36a445fa57b44b0a65613550544c179e314a3d516c2cbd8f245a3f001a0854b99c7bbac171c5756 0003-specs-turn-on-Wl-z-now-by-default.patch +b8dd907022785d5f3edd5b6575a1343d54a0c84d935e76a35308dcf2cb602a03e8b91fb51431a9be970eb797f0ae8d4f64f93ec97573cc0fdac61c0dba5ab79f 0004-Turn-on-D_FORTIFY_SOURCE-2-by-default-for-C-C-ObjC-O.patch +f93ec8f926a014cd43e70589ce188ca0ef24d216617184bcb81e9c9cbd56aeeede6653489f2d31105c51cab7ea94499db5ec46528ad6e14d33d8e90e2c95dc29 0005-On-linux-targets-pass-as-needed-by-default-to-the-li.patch +966012aa0a9271232d271d548c1029af3567aaf0b1d3d1ef502ad6fa18cb1c6709f8e7f7124c58040777ddd84bca68490255664a02f0a626d9e76aa4a3949980 0006-Enable-Wformat-and-Wformat-security-by-default.patch +503789bae52d70ddae2cb55ab5046b149f03af95c8341927712d1f7c6c2d25db1fa2ee19f0832d477357162adb276f287c66b702565b684162a2f43b69157d9f 0007-Enable-Wtrampolines-by-default.patch +1488ae4f29e3d9416430e1a10e9201d4c1cad10515ff0921756e98b6be4ec5aa8adbd94d7e5fe4dab446bdf495183fbd6d04cd53a69e5d7f2d1963eeb739daf7 0008-Disable-ssp-on-nostdlib-nodefaultlibs-and-ffreestand.patch +6785152ee7d25ccfdb5bb14ccb08e9fa21433f3f9567b12c7174ec77c37d2437737bde60d8b4be41927eaf40efe46d24348e95ccde78428877f296f33642ab49 0009-Ensure-that-msgfmt-doesn-t-encounter-problems-during.patch +8ca5ef6c9ad56c0314a2230ef6d8d21e0bffdc1289f573991077d6ed1007e30d4cbefe00b0ea72718c09020bb8275178f028ce6763829f7e34255a9b84e5332f 0010-Don-t-declare-asprintf-if-defined-as-a-macro.patch +6909b33e6067c3aef3f6a6975c9c35523d3aa7cb1e8bdaed73804b9afd28890fc868e54f806ac31b134a9c783b2e4774e561f9a7c456c6dba85c17acee1aa84d 0011-libiberty-copy-PIC-objects-during-build-process.patch +2ff9b6828b25ea6ede730954131ccdcbdd7457f0fc32c0ba87dc9a4732a22f9bb87086b1429f7ebd04859ea66b7b3682fc75e8d81e96b2b74e9a6891456f6835 0012-libgcc_s.patch +eb1241be648e0371dd83bed55e1902b7867938cb71fa5ed09b8e1ecfb81ee5da40abc42f2ab515217c8e70234f923fc1b85ec137fd7a58cbfaf357f732cd16f7 0013-nopie.patch +4cd04db2d503d4cc224b08a39b4130056df340ea27c2d2c8b682096516255d4f431af2a9cf8bf1fb946b1499f1157123de666beaef72875ab3e678dde1dddce2 0014-ada-fix-shared-linking.patch +07c159267d0f3fea64f504ce0f995e2e1dab5c96cc00198698ff24392d3cb242915ac373f69f8fc3fbc12bd60fa2c5d5b22bbf01aba938bcb6c9d2541c1701f0 0015-build-fix-CXXFLAGS_FOR_BUILD-passing.patch +548c7e0f7795405f46c9177638c6c20dca1d3de850a8e238ac2278887924be080d243135d246e7c15c0eb0c82b6d58cec5afbcba26da45c294a3e3de54b12e9b 0016-add-fortify-headers-paths.patch +3e50bec315f257f57e5fdc830a91a813451348f4ed2b7d43d628544592d684e0971e2b00b614f46d0b5902fa530f13db7c86bedc180da6a700a96f1e4be2ad88 0017-Alpine-musl-package-provides-libssp_nonshared.a.-We-.patch +c777cf9ed9e0a9d91b5539a12375679f37b101e35aae6a70d113074138f4eb47afeae454206d47f5a8d6e5d437640a754839cc67cfa81a3269cc4ee4fefa8a6b 0018-DP-Use-push-state-pop-state-for-gold-as-well-when-li.patch +5b3e6875725b0a63666af7709e55154774045f1e03ef7e8620cf3cf9d50bfd852259b26e8f072613e02b106c0a09834f6223f21084362ff6a7697ba874ab1a14 0019-aarch64-disable-multilib-support.patch +bc7790e9012985d8f2147476d57f580e966b83323b596914575518d80db51c27bd7080116ff6aef91fcf0de6712f4710a32f1c272c7fc927f0f8a4ee90fc547b 0020-s390x-disable-multilib-support.patch +4284db01201fa1e9cebda4098b61b0c9c0319f86e0870e26e991df4b902cef6381b032f4ba83ba4e6b2537b2e14bf6e1069bba8a55054d70421769fbca3a5d80 0021-ppc64-le-disable-multilib-support.patch +a151bd420781dae743c3406657d111a226e3170b258d7a0ce32c7c959c8702d504249222071e329c24dc74ebdcd9fafd36cb5a15d153714c6fc52e9b399353cb 0022-x86_64-disable-multilib-support.patch +59a32ab970d83a7be15e75be73dcbf760df1a16768568ab8bfdb7519b97b53096cb9f9db5fbefe01c23957bb5f84f89eb44df3bd09ec168ab0dfb49036246b04 0023-riscv-disable-multilib-support.patch +e083d4fdfdc22d318d8cb75c7b7ec9b1426cb0a4b66c35766a0c59aab0151a69cc40a58041ef7b2475e6c6c7d7130fbe8898f04b28008cec36076ed9b74f8b3e 0024-always-build-libgcc_eh.a.patch +c3c3f80d48d79a8ea182d6b193cbc9334a04f8620bf53f44c7a1016a184c0113754d25c8ab912fae7c985147454f3c3dcaea05de05f9232bfa44b377a7740ebb 0025-ada-libgnarl-compatibility-for-musl.patch +8f7392f6339488916b94ef5bae8e13991462b8ea4ce8317eb7b70eac59785b0a68fae26fee5b819e2889a365e512693a650f33c59848537568798b859884ad17 0026-ada-musl-support-fixes.patch +8198c2761551912e286d4cbe8d9f3feadc63cba1cb03f9fec739b8127643714b559fbaa8d16f6f9605836cc660dbdd10d4d2cdf322418a9b135a03b79577e58e 0027-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch +65410e7eb0e9cfb202570365cac76ba951ec52332a02d16bfece10e4f90ea1c2feccc0aee8d3b57ec36c3d83dc3e48b80c077458106dc031fc4b9a9fe7386466 0028-configure-fix-detection-of-atomic-builtins-in-libato.patch +023b3f79edd904a2fdafa903288626467aba43777ab40b53875fc3fb126a64af24b772ae06266afe93aa09f594c494b6e2c3b4d94eb9da724bb130978242a07c 0029-libstdc-do-not-throw-exceptions-for-non-C-locales-on.patch +f37af328cf6562aaed7d3c8a62f4cc9bcd7b858d862e6a7cd9e6f5d8710578cf77c78bfe153b7a736cc1881b5534cd98f99065f821ae961e64840d360966c669 0030-gdc-unconditionally-link-libgphobos-against-libucont.patch +8f5fd0aa921c3fb34bc268a76dea34f6db0dcf120b9c72dce8e691e880fc404f6881d73d0ea20620703da8720fff769215df3bbb679fd32eff78a27fc40a3366 0031-druntime-link-against-libucontext-on-all-platforms.patch +00f1d6434bd8bc2baaad58f3d739e771fd2738af7c86f0ea1a99a70b71153b78d586b3e098cc7a5cdd06b515d70e32acb2b239a0bb3b96078af7a0e52be9d6aa 0032-libgnat-time_t-is-always-64-bit-on-musl-libc.patch +5ee4a721f27908c9f9352f7f0de46f36d6464548b9524c7f45ca92c159966481782182022f2270ef690a1828270bbb9879111cc62b080e5314a235aa83d409e3 0033-libphobos-do-not-use-LFS64-symbols.patch " diff --git a/cross/gcc-armhf/0001-posix_memalign.patch b/cross/gcc-armhf/0001-posix_memalign.patch index 469693531..96fe91015 100644 --- a/cross/gcc-armhf/0001-posix_memalign.patch +++ b/cross/gcc-armhf/0001-posix_memalign.patch @@ -1,7 +1,7 @@ -From 5238749680d22a42e90dc3832ef1ad1c9a5f1c20 Mon Sep 17 00:00:00 2001 +From 3e5acbe356124aa5d8dde0635d652c065a553e7d Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Fri, 26 Jan 2018 20:32:50 +0000 -Subject: [PATCH 01/32] posix_memalign +Subject: [PATCH 01/33] posix_memalign --- gcc/config/i386/pmm_malloc.h | 9 +++++---- diff --git a/cross/gcc-armhf/0002-gcc-poison-system-directories.patch b/cross/gcc-armhf/0002-gcc-poison-system-directories.patch index 21ac0ed95..680fc5572 100644 --- a/cross/gcc-armhf/0002-gcc-poison-system-directories.patch +++ b/cross/gcc-armhf/0002-gcc-poison-system-directories.patch @@ -1,7 +1,7 @@ -From dc71cb9815d25a57430ef5d8e2a87312d8c3b467 Mon Sep 17 00:00:00 2001 +From f986a4a1224fa7d452b415d690aead8d356a7eae Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Fri, 29 Mar 2013 08:59:00 +0400 -Subject: [PATCH 02/32] gcc: poison-system-directories +Subject: [PATCH 02/33] gcc: poison-system-directories Add /sw/include and /opt/include based on the original zecke-no-host-includes.patch patch. The original patch checked for diff --git a/cross/gcc-armhf/0003-specs-turn-on-Wl-z-now-by-default.patch b/cross/gcc-armhf/0003-specs-turn-on-Wl-z-now-by-default.patch index 37e478aa3..f78ff8bb1 100644 --- a/cross/gcc-armhf/0003-specs-turn-on-Wl-z-now-by-default.patch +++ b/cross/gcc-armhf/0003-specs-turn-on-Wl-z-now-by-default.patch @@ -1,7 +1,7 @@ -From 95cd372c839d347b41e22605d569cca6a2119b85 Mon Sep 17 00:00:00 2001 +From 31e2b60000e779ef775daa306120eabcf987852a Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:45:49 +0000 -Subject: [PATCH 03/32] specs: turn on -Wl,-z,now by default +Subject: [PATCH 03/33] specs: turn on -Wl,-z,now by default Previously, we also used to turn on -z relro here, but we now build binutils with --enable-relro, which is functionally equivalent. diff --git a/cross/gcc-armhf/0004-Turn-on-D_FORTIFY_SOURCE-2-by-default-for-C-C-ObjC-O.patch b/cross/gcc-armhf/0004-Turn-on-D_FORTIFY_SOURCE-2-by-default-for-C-C-ObjC-O.patch index ce27b18db..4efa91b31 100644 --- a/cross/gcc-armhf/0004-Turn-on-D_FORTIFY_SOURCE-2-by-default-for-C-C-ObjC-O.patch +++ b/cross/gcc-armhf/0004-Turn-on-D_FORTIFY_SOURCE-2-by-default-for-C-C-ObjC-O.patch @@ -1,7 +1,7 @@ -From 12b0a32aa19334c1b5dd20c9cc3b0ca885e973ce Mon Sep 17 00:00:00 2001 +From 3b910da7d1e81bdd953e6d9ec82020e7b120353b Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:46:22 +0000 -Subject: [PATCH 04/32] Turn on -D_FORTIFY_SOURCE=2 by default for C, C++, +Subject: [PATCH 04/33] Turn on -D_FORTIFY_SOURCE=2 by default for C, C++, ObjC, ObjC++, if the optimization level is > 0 --- diff --git a/cross/gcc-armhf/0005-On-linux-targets-pass-as-needed-by-default-to-the-li.patch b/cross/gcc-armhf/0005-On-linux-targets-pass-as-needed-by-default-to-the-li.patch index 8a54c607a..fa6936d39 100644 --- a/cross/gcc-armhf/0005-On-linux-targets-pass-as-needed-by-default-to-the-li.patch +++ b/cross/gcc-armhf/0005-On-linux-targets-pass-as-needed-by-default-to-the-li.patch @@ -1,7 +1,7 @@ -From 8693307d930c085828c921023219d4c1459a32e9 Mon Sep 17 00:00:00 2001 +From 9c3a2882b1932296ccb1d0ed2900cf046f998a26 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:46:56 +0000 -Subject: [PATCH 05/32] On linux targets pass --as-needed by default to the +Subject: [PATCH 05/33] On linux targets pass --as-needed by default to the linker, but always link the sanitizer libraries with --no-as-needed. --- diff --git a/cross/gcc-armhf/0006-Enable-Wformat-and-Wformat-security-by-default.patch b/cross/gcc-armhf/0006-Enable-Wformat-and-Wformat-security-by-default.patch index 1743495cc..3476e31db 100644 --- a/cross/gcc-armhf/0006-Enable-Wformat-and-Wformat-security-by-default.patch +++ b/cross/gcc-armhf/0006-Enable-Wformat-and-Wformat-security-by-default.patch @@ -1,7 +1,7 @@ -From ec4e37d755110ffb5a4bdba54db89ea06ff3926a Mon Sep 17 00:00:00 2001 +From 288cb2be3abe07dcf2737ed3ac07e93573262bc4 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:47:43 +0000 -Subject: [PATCH 06/32] Enable -Wformat and -Wformat-security by default. +Subject: [PATCH 06/33] Enable -Wformat and -Wformat-security by default. --- gcc/c-family/c.opt | 4 ++-- diff --git a/cross/gcc-armhf/0007-Enable-Wtrampolines-by-default.patch b/cross/gcc-armhf/0007-Enable-Wtrampolines-by-default.patch index 87532e376..05442fa64 100644 --- a/cross/gcc-armhf/0007-Enable-Wtrampolines-by-default.patch +++ b/cross/gcc-armhf/0007-Enable-Wtrampolines-by-default.patch @@ -1,7 +1,7 @@ -From fdc4c95806cb57e98785c991c6ae9d9f2183a914 Mon Sep 17 00:00:00 2001 +From 93e44f7c7b1f11c1f714d6c384b0d39a191ac18a Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:48:24 +0000 -Subject: [PATCH 07/32] Enable -Wtrampolines by default. +Subject: [PATCH 07/33] Enable -Wtrampolines by default. --- gcc/common.opt | 2 +- diff --git a/cross/gcc-armhf/0008-Disable-ssp-on-nostdlib-nodefaultlibs-and-ffreestand.patch b/cross/gcc-armhf/0008-Disable-ssp-on-nostdlib-nodefaultlibs-and-ffreestand.patch index 8e036c843..f76353ed8 100644 --- a/cross/gcc-armhf/0008-Disable-ssp-on-nostdlib-nodefaultlibs-and-ffreestand.patch +++ b/cross/gcc-armhf/0008-Disable-ssp-on-nostdlib-nodefaultlibs-and-ffreestand.patch @@ -1,7 +1,7 @@ -From 547ed1d35f0fa8c04cefb8708c4a148f86ed3397 Mon Sep 17 00:00:00 2001 +From 7aa93d6d9a63c7bedf1e033f6d040e95038537e7 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:49:40 +0000 -Subject: [PATCH 08/32] Disable ssp on -nostdlib, -nodefaultlibs and +Subject: [PATCH 08/33] Disable ssp on -nostdlib, -nodefaultlibs and -ffreestanding Change the buffer size. --- diff --git a/cross/gcc-armhf/0009-Ensure-that-msgfmt-doesn-t-encounter-problems-during.patch b/cross/gcc-armhf/0009-Ensure-that-msgfmt-doesn-t-encounter-problems-during.patch index c8ce3908d..ef9c84b0c 100644 --- a/cross/gcc-armhf/0009-Ensure-that-msgfmt-doesn-t-encounter-problems-during.patch +++ b/cross/gcc-armhf/0009-Ensure-that-msgfmt-doesn-t-encounter-problems-during.patch @@ -1,7 +1,7 @@ -From ee2e986e85a0400402f006ec2ddf2435cac621ba Mon Sep 17 00:00:00 2001 +From e44b295b5b0b917c0b47085f60466a37f890e1c7 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:50:33 +0000 -Subject: [PATCH 09/32] Ensure that msgfmt doesn't encounter problems during +Subject: [PATCH 09/33] Ensure that msgfmt doesn't encounter problems during gcc bootstrapping. Solves error messages like the following: diff --git a/cross/gcc-armhf/0010-Don-t-declare-asprintf-if-defined-as-a-macro.patch b/cross/gcc-armhf/0010-Don-t-declare-asprintf-if-defined-as-a-macro.patch index 4e2992549..16a7279a0 100644 --- a/cross/gcc-armhf/0010-Don-t-declare-asprintf-if-defined-as-a-macro.patch +++ b/cross/gcc-armhf/0010-Don-t-declare-asprintf-if-defined-as-a-macro.patch @@ -1,7 +1,7 @@ -From 2ed284234b08b5018fb542c784e6b8757b1e4967 Mon Sep 17 00:00:00 2001 +From f041dcd8f775e03b85a49e3aeef0870e2333b10e Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:52:07 +0000 -Subject: [PATCH 10/32] Don't declare asprintf if defined as a macro. +Subject: [PATCH 10/33] Don't declare asprintf if defined as a macro. --- include/libiberty.h | 3 +++ diff --git a/cross/gcc-armhf/0011-libiberty-copy-PIC-objects-during-build-process.patch b/cross/gcc-armhf/0011-libiberty-copy-PIC-objects-during-build-process.patch index fecb28d30..5d6009522 100644 --- a/cross/gcc-armhf/0011-libiberty-copy-PIC-objects-during-build-process.patch +++ b/cross/gcc-armhf/0011-libiberty-copy-PIC-objects-during-build-process.patch @@ -1,7 +1,7 @@ -From 52544d0abdcf63f33446f880fcaae1d0aa589a81 Mon Sep 17 00:00:00 2001 +From 6fc13fce114648b1a64e658b469a4697382d18bb Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:53:00 +0000 -Subject: [PATCH 11/32] libiberty: copy PIC objects during build process +Subject: [PATCH 11/33] libiberty: copy PIC objects during build process --- libiberty/Makefile.in | 1 + diff --git a/cross/gcc-armhf/0012-libgcc_s.patch b/cross/gcc-armhf/0012-libgcc_s.patch index 6723faf13..354f594b2 100644 --- a/cross/gcc-armhf/0012-libgcc_s.patch +++ b/cross/gcc-armhf/0012-libgcc_s.patch @@ -1,7 +1,7 @@ -From eff4677a5511567ab3d550a5989ee0805fc3e1a7 Mon Sep 17 00:00:00 2001 +From 6a1955bbf49836ad99b23501f42283842e01761b Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Sat, 24 Oct 2015 20:09:53 +0000 -Subject: [PATCH 12/32] libgcc_s +Subject: [PATCH 12/33] libgcc_s --- gcc/config/i386/i386-expand.cc | 4 ++-- diff --git a/cross/gcc-armhf/0013-nopie.patch b/cross/gcc-armhf/0013-nopie.patch index db80a043d..c73cd12bb 100644 --- a/cross/gcc-armhf/0013-nopie.patch +++ b/cross/gcc-armhf/0013-nopie.patch @@ -1,7 +1,7 @@ -From 8af4ddcecc9dc43d714798d255a21e12985721b9 Mon Sep 17 00:00:00 2001 +From 558e95aa2b0f3bbf416e1bb572e5f47bddc8601c Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Sat, 7 Nov 2015 02:08:05 +0000 -Subject: [PATCH 13/32] nopie +Subject: [PATCH 13/33] nopie --- gcc/configure | 27 +++++++++++++++++++++++++++ diff --git a/cross/gcc-armhf/0014-ada-fix-shared-linking.patch b/cross/gcc-armhf/0014-ada-fix-shared-linking.patch index 46c1814e6..b31f91b67 100644 --- a/cross/gcc-armhf/0014-ada-fix-shared-linking.patch +++ b/cross/gcc-armhf/0014-ada-fix-shared-linking.patch @@ -1,7 +1,7 @@ -From 1330c37f63c0388480cfa369df2b437e9c8cc878 Mon Sep 17 00:00:00 2001 +From ecad19db42776c536bd4f6033ec1891ffae03720 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:59:16 +0000 -Subject: [PATCH 14/32] ada: fix shared linking +Subject: [PATCH 14/33] ada: fix shared linking --- gcc/ada/link.c | 12 ++++++------ diff --git a/cross/gcc-armhf/0015-build-fix-CXXFLAGS_FOR_BUILD-passing.patch b/cross/gcc-armhf/0015-build-fix-CXXFLAGS_FOR_BUILD-passing.patch index 951158940..3aca83c4b 100644 --- a/cross/gcc-armhf/0015-build-fix-CXXFLAGS_FOR_BUILD-passing.patch +++ b/cross/gcc-armhf/0015-build-fix-CXXFLAGS_FOR_BUILD-passing.patch @@ -1,7 +1,7 @@ -From ceb43810c502b238cb487af6e84b1c80f2105f1a Mon Sep 17 00:00:00 2001 +From 8500b4cdd039c16a02a8acabd124b92865871979 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:59:43 +0000 -Subject: [PATCH 15/32] build: fix CXXFLAGS_FOR_BUILD passing +Subject: [PATCH 15/33] build: fix CXXFLAGS_FOR_BUILD passing --- Makefile.in | 1 + diff --git a/cross/gcc-armhf/0016-add-fortify-headers-paths.patch b/cross/gcc-armhf/0016-add-fortify-headers-paths.patch index 8e8a0b74e..dfdfa414d 100644 --- a/cross/gcc-armhf/0016-add-fortify-headers-paths.patch +++ b/cross/gcc-armhf/0016-add-fortify-headers-paths.patch @@ -1,7 +1,7 @@ -From ebc8167db85bc37a59f02fec6904829652989564 Mon Sep 17 00:00:00 2001 +From e893ad827215a7c090a835e20a81559f4044fb47 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 07:01:06 +0000 -Subject: [PATCH 16/32] add fortify-headers paths +Subject: [PATCH 16/33] add fortify-headers paths --- gcc/config/linux.h | 2 ++ diff --git a/cross/gcc-armhf/0017-Alpine-musl-package-provides-libssp_nonshared.a.-We-.patch b/cross/gcc-armhf/0017-Alpine-musl-package-provides-libssp_nonshared.a.-We-.patch index e3c8a07b8..656c69142 100644 --- a/cross/gcc-armhf/0017-Alpine-musl-package-provides-libssp_nonshared.a.-We-.patch +++ b/cross/gcc-armhf/0017-Alpine-musl-package-provides-libssp_nonshared.a.-We-.patch @@ -1,7 +1,7 @@ -From 86a566d0ed9da32b5f3a6ac48999ebbac6dce4a5 Mon Sep 17 00:00:00 2001 +From 064afc74f18f2a00771fc2600029a713b8708845 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20Ter=C3=A4s?= Date: Fri, 21 Aug 2020 07:03:00 +0000 -Subject: [PATCH 17/32] Alpine musl package provides libssp_nonshared.a. We +Subject: [PATCH 17/33] Alpine musl package provides libssp_nonshared.a. We link to it unconditionally, as otherwise we get link failures if some objects are -fstack-protector built and final link happens with -fno-stack-protector. This seems to be the common case when bootstrapping gcc, the piepatches do diff --git a/cross/gcc-armhf/0018-DP-Use-push-state-pop-state-for-gold-as-well-when-li.patch b/cross/gcc-armhf/0018-DP-Use-push-state-pop-state-for-gold-as-well-when-li.patch index 2a2b90fca..001db4857 100644 --- a/cross/gcc-armhf/0018-DP-Use-push-state-pop-state-for-gold-as-well-when-li.patch +++ b/cross/gcc-armhf/0018-DP-Use-push-state-pop-state-for-gold-as-well-when-li.patch @@ -1,7 +1,7 @@ -From d113a7974d55a8c5e71f0d72202db3e303245d2b Mon Sep 17 00:00:00 2001 +From 45a98ce1f1702424aba4271f7f7570e43a354101 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 07:03:42 +0000 -Subject: [PATCH 18/32] DP: Use --push-state/--pop-state for gold as well when +Subject: [PATCH 18/33] DP: Use --push-state/--pop-state for gold as well when linking libtsan. --- diff --git a/cross/gcc-armhf/0019-aarch64-disable-multilib-support.patch b/cross/gcc-armhf/0019-aarch64-disable-multilib-support.patch index 100736769..19a1afabf 100644 --- a/cross/gcc-armhf/0019-aarch64-disable-multilib-support.patch +++ b/cross/gcc-armhf/0019-aarch64-disable-multilib-support.patch @@ -1,7 +1,7 @@ -From 3ba91105e2299d591d817164e2c98b905460892d Mon Sep 17 00:00:00 2001 +From 6a2e902dc8abcfd44522b9224fd759d038db51f5 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Thu, 6 Jan 2022 03:12:55 +0000 -Subject: [PATCH 19/32] aarch64: disable multilib support +Subject: [PATCH 19/33] aarch64: disable multilib support multilib is unsupported on Alpine GCC --- diff --git a/cross/gcc-armhf/0020-s390x-disable-multilib-support.patch b/cross/gcc-armhf/0020-s390x-disable-multilib-support.patch index 897c28bc3..2817a092e 100644 --- a/cross/gcc-armhf/0020-s390x-disable-multilib-support.patch +++ b/cross/gcc-armhf/0020-s390x-disable-multilib-support.patch @@ -1,7 +1,7 @@ -From ac6348347f14ba8274655aa6af27ccfbf89a437f Mon Sep 17 00:00:00 2001 +From 6e7c72ee05353a284d9c9809035e7ff488b4b8c1 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Thu, 6 Jan 2022 03:13:59 +0000 -Subject: [PATCH 20/32] s390x: disable multilib support +Subject: [PATCH 20/33] s390x: disable multilib support multilib is not supported on Alpine GCC at present --- diff --git a/cross/gcc-armhf/0021-ppc64-le-disable-multilib-support.patch b/cross/gcc-armhf/0021-ppc64-le-disable-multilib-support.patch index 7de6bf95d..2dc2bbc36 100644 --- a/cross/gcc-armhf/0021-ppc64-le-disable-multilib-support.patch +++ b/cross/gcc-armhf/0021-ppc64-le-disable-multilib-support.patch @@ -1,7 +1,7 @@ -From 969630b9b930860077fcc9b08972d18b40518828 Mon Sep 17 00:00:00 2001 +From 44655aa3be8d5354fb82a42317a9ac6ac1b50164 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Thu, 6 Jan 2022 03:14:33 +0000 -Subject: [PATCH 21/32] ppc64[le]: disable multilib support +Subject: [PATCH 21/33] ppc64[le]: disable multilib support multilib is not presently supported on Alpine GCC --- diff --git a/cross/gcc-armhf/0022-x86_64-disable-multilib-support.patch b/cross/gcc-armhf/0022-x86_64-disable-multilib-support.patch index 566951533..d69ec3167 100644 --- a/cross/gcc-armhf/0022-x86_64-disable-multilib-support.patch +++ b/cross/gcc-armhf/0022-x86_64-disable-multilib-support.patch @@ -1,7 +1,7 @@ -From a34c8e7255f71228e4bef4d51fbb791a10013658 Mon Sep 17 00:00:00 2001 +From 5f79236c49bd0c2c36440f0ef83cea02d52fcaaf Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Thu, 6 Jan 2022 03:14:54 +0000 -Subject: [PATCH 22/32] x86_64: disable multilib support +Subject: [PATCH 22/33] x86_64: disable multilib support multilib is not presently supported on Alpine GCC --- diff --git a/cross/gcc-armhf/0023-riscv-disable-multilib-support.patch b/cross/gcc-armhf/0023-riscv-disable-multilib-support.patch index f81c30a61..7b5c9a56d 100644 --- a/cross/gcc-armhf/0023-riscv-disable-multilib-support.patch +++ b/cross/gcc-armhf/0023-riscv-disable-multilib-support.patch @@ -1,7 +1,7 @@ -From abf619dfadb883809457037a52d5eb77acf25dd5 Mon Sep 17 00:00:00 2001 +From 4605e64b3a076411f2f8134256c400eb58bcc1c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Tempel?= Date: Mon, 3 Jan 2022 07:14:48 +0100 -Subject: [PATCH 23/32] riscv: disable multilib support +Subject: [PATCH 23/33] riscv: disable multilib support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit diff --git a/cross/gcc-armhf/0024-always-build-libgcc_eh.a.patch b/cross/gcc-armhf/0024-always-build-libgcc_eh.a.patch index 454279070..b1ab2e715 100644 --- a/cross/gcc-armhf/0024-always-build-libgcc_eh.a.patch +++ b/cross/gcc-armhf/0024-always-build-libgcc_eh.a.patch @@ -1,7 +1,7 @@ -From fc731db4cee01c38c1454e55ec51cb78d6713188 Mon Sep 17 00:00:00 2001 +From a178cfeb975d79bb9b9fd877ab4c6e05d10b147e Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 07:05:41 +0000 -Subject: [PATCH 24/32] always build libgcc_eh.a +Subject: [PATCH 24/33] always build libgcc_eh.a highly inspired by: http://landley.net/hg/aboriginal/file/7e0747a665ab/sources/patches/gcc-core-libgcceh.patch diff --git a/cross/gcc-armhf/0025-ada-libgnarl-compatibility-for-musl.patch b/cross/gcc-armhf/0025-ada-libgnarl-compatibility-for-musl.patch index 1cc9c1bd3..39d77413f 100644 --- a/cross/gcc-armhf/0025-ada-libgnarl-compatibility-for-musl.patch +++ b/cross/gcc-armhf/0025-ada-libgnarl-compatibility-for-musl.patch @@ -1,7 +1,7 @@ -From e3271b1970ecb6dab612333ec93c8bd2107cc598 Mon Sep 17 00:00:00 2001 +From 5bc3deb9bc2679ad4f6f189a65e3643b550587a1 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 07:06:30 +0000 -Subject: [PATCH 25/32] ada: libgnarl compatibility for musl +Subject: [PATCH 25/33] ada: libgnarl compatibility for musl --- gcc/ada/libgnarl/s-osinte__linux.ads | 11 ------ diff --git a/cross/gcc-armhf/0026-ada-musl-support-fixes.patch b/cross/gcc-armhf/0026-ada-musl-support-fixes.patch index 8b52c83e8..c36ff6237 100644 --- a/cross/gcc-armhf/0026-ada-musl-support-fixes.patch +++ b/cross/gcc-armhf/0026-ada-musl-support-fixes.patch @@ -1,7 +1,7 @@ -From fdfa9e6dfcc384bce6e525a9ce3a280b808b8312 Mon Sep 17 00:00:00 2001 +From e1e6dccc9124e0907c5ae174d20acb3bad87e633 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 07:07:48 +0000 -Subject: [PATCH 26/32] ada: musl support fixes +Subject: [PATCH 26/33] ada: musl support fixes --- gcc/ada/Makefile.rtl | 10 +++++----- diff --git a/cross/gcc-armhf/0027-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch b/cross/gcc-armhf/0027-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch index c1a7521b5..febd64005 100644 --- a/cross/gcc-armhf/0027-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch +++ b/cross/gcc-armhf/0027-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch @@ -1,7 +1,7 @@ -From 4a8793a2233c4bd91cd33958fff1420c4bf19333 Mon Sep 17 00:00:00 2001 +From 9506e729f0e4f66f4018fbfc5340a568e8520264 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Wed, 9 Dec 2020 07:42:06 +0000 -Subject: [PATCH 27/32] configure: Add --enable-autolink-libatomic, use in +Subject: [PATCH 27/33] configure: Add --enable-autolink-libatomic, use in LINK_GCC_C_SEQUENCE_SPEC [PR81358] This fixes issues with RISC-V. diff --git a/cross/gcc-armhf/0028-configure-fix-detection-of-atomic-builtins-in-libato.patch b/cross/gcc-armhf/0028-configure-fix-detection-of-atomic-builtins-in-libato.patch index b2959c347..939f76b7b 100644 --- a/cross/gcc-armhf/0028-configure-fix-detection-of-atomic-builtins-in-libato.patch +++ b/cross/gcc-armhf/0028-configure-fix-detection-of-atomic-builtins-in-libato.patch @@ -1,7 +1,7 @@ -From c9b40cfd31fd166e7481480218c074ba6b1214cb Mon Sep 17 00:00:00 2001 +From 966da83d0d75482a1489804593ae61f3f8e3b385 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Tempel?= Date: Sun, 29 Aug 2021 12:23:34 +0200 -Subject: [PATCH 28/32] configure: fix detection of atomic builtins in +Subject: [PATCH 28/33] configure: fix detection of atomic builtins in libatomic configure script Alpine's --enable-autolink-libatomic (which is enabled for riscv64 by diff --git a/cross/gcc-armhf/0029-libstdc-do-not-throw-exceptions-for-non-C-locales-on.patch b/cross/gcc-armhf/0029-libstdc-do-not-throw-exceptions-for-non-C-locales-on.patch index 3d47c6531..4d13cd6e6 100644 --- a/cross/gcc-armhf/0029-libstdc-do-not-throw-exceptions-for-non-C-locales-on.patch +++ b/cross/gcc-armhf/0029-libstdc-do-not-throw-exceptions-for-non-C-locales-on.patch @@ -1,7 +1,7 @@ -From e2b9546b31d33f7d13ba675171025cf30ae2e21e Mon Sep 17 00:00:00 2001 +From e74f4b3a10d96f06b15df9d9b61d5b10a84ec084 Mon Sep 17 00:00:00 2001 From: Samuel Holland Date: Thu, 30 Jun 2022 16:44:51 +0000 -Subject: [PATCH 29/32] libstdc++: do not throw exceptions for non-C locales on +Subject: [PATCH 29/33] libstdc++: do not throw exceptions for non-C locales on musl targets --- diff --git a/cross/gcc-armhf/0030-gdc-unconditionally-link-libgphobos-against-libucont.patch b/cross/gcc-armhf/0030-gdc-unconditionally-link-libgphobos-against-libucont.patch index d5fc03179..83f1eb06f 100644 --- a/cross/gcc-armhf/0030-gdc-unconditionally-link-libgphobos-against-libucont.patch +++ b/cross/gcc-armhf/0030-gdc-unconditionally-link-libgphobos-against-libucont.patch @@ -1,7 +1,7 @@ -From f036f4b4dc5476429e5485cdc5cc15c29da4d7e1 Mon Sep 17 00:00:00 2001 +From bdc2699f0284e59842e5d3a39fc426550b4ba0e8 Mon Sep 17 00:00:00 2001 From: Mathias LANG Date: Mon, 17 Jan 2022 03:49:21 +0000 -Subject: [PATCH 30/32] gdc: unconditionally link libgphobos against +Subject: [PATCH 30/33] gdc: unconditionally link libgphobos against libucontext ref: alpine/aports#13422 diff --git a/cross/gcc-armhf/0031-druntime-link-against-libucontext-on-all-platforms.patch b/cross/gcc-armhf/0031-druntime-link-against-libucontext-on-all-platforms.patch index e07474deb..be9959ccf 100644 --- a/cross/gcc-armhf/0031-druntime-link-against-libucontext-on-all-platforms.patch +++ b/cross/gcc-armhf/0031-druntime-link-against-libucontext-on-all-platforms.patch @@ -1,7 +1,7 @@ -From 3b27d7eebc87675a377a68b8bb67bdd3399de67f Mon Sep 17 00:00:00 2001 +From 82780d18bfcb7dabc215d4b89b1187cb253e15f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Tempel?= Date: Sat, 16 Jul 2022 09:21:11 +0200 -Subject: [PATCH 31/32] druntime: link against libucontext on all platforms +Subject: [PATCH 31/33] druntime: link against libucontext on all platforms On musl-based Linux distributions, swapcontext etc. are not provided by musl but instead by libucontext. Hence, we _always_ need to link against diff --git a/cross/gcc-armhf/0032-libgnat-time_t-is-always-64-bit-on-musl-libc.patch b/cross/gcc-armhf/0032-libgnat-time_t-is-always-64-bit-on-musl-libc.patch index bd28ec3b2..4f02e6ce5 100644 --- a/cross/gcc-armhf/0032-libgnat-time_t-is-always-64-bit-on-musl-libc.patch +++ b/cross/gcc-armhf/0032-libgnat-time_t-is-always-64-bit-on-musl-libc.patch @@ -1,7 +1,7 @@ -From 5081b2b7526e11a4877548a2348c53798ba3de7b Mon Sep 17 00:00:00 2001 +From 32fc6be0b339983e31f6285dbc565b906ec983d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Tempel?= Date: Tue, 19 Jul 2022 14:54:07 +0200 -Subject: [PATCH 32/32] libgnat: time_t is always 64-bit on musl libc +Subject: [PATCH 32/33] libgnat: time_t is always 64-bit on musl libc --- gcc/ada/libgnat/s-parame.ads | 2 +- diff --git a/cross/gcc-armhf/0033-libphobos-do-not-use-LFS64-symbols.patch b/cross/gcc-armhf/0033-libphobos-do-not-use-LFS64-symbols.patch new file mode 100644 index 000000000..6ccd1ae98 --- /dev/null +++ b/cross/gcc-armhf/0033-libphobos-do-not-use-LFS64-symbols.patch @@ -0,0 +1,30 @@ +From b5e9f810a8a5963104dd1897c3276f60786f9edb Mon Sep 17 00:00:00 2001 +From: psykose +Date: Mon, 29 May 2023 15:33:11 +0000 +Subject: [PATCH 33/33] libphobos: do not use LFS64 symbols + +musl does not have these since 1.2.4, we can't use the compat interfaces. +--- + libphobos/libdruntime/core/sys/posix/sys/mman.d | 6 +----- + 1 file changed, 1 insertion(+), 5 deletions(-) + +diff --git a/libphobos/libdruntime/core/sys/posix/sys/mman.d b/libphobos/libdruntime/core/sys/posix/sys/mman.d +index 0d3d517d69a..323aa0af72d 100644 +--- a/libphobos/libdruntime/core/sys/posix/sys/mman.d ++++ b/libphobos/libdruntime/core/sys/posix/sys/mman.d +@@ -293,11 +293,7 @@ else version (CRuntime_Bionic) + } + else version (CRuntime_Musl) + { +- static if (__USE_LARGEFILE64) void* mmap64(void*, size_t, int, int, int, off_t); +- static if (__USE_FILE_OFFSET64) +- alias mmap = mmap64; +- else +- void* mmap(void*, size_t, int, int, int, off_t); ++ void* mmap(void*, size_t, int, int, int, off_t); + int munmap(void*, size_t); + } + else version (CRuntime_UClibc) +-- +2.40.1 + diff --git a/cross/gcc-armhf/APKBUILD b/cross/gcc-armhf/APKBUILD index 495dcab2a..76c770974 100644 --- a/cross/gcc-armhf/APKBUILD +++ b/cross/gcc-armhf/APKBUILD @@ -34,7 +34,7 @@ _pkgsnap="${pkgver##*_git}" [ "$CHOST" != "$CTARGET" ] && _target="-$CTARGET_ARCH" || _target="" pkgname=gcc-armhf -pkgrel=0 +pkgrel=1 pkgdesc="Stage2 cross-compiler for armhf" url="https://gcc.gnu.org" arch="x86_64" @@ -266,6 +266,7 @@ source="https://dev.alpinelinux.org/archive/gcc/${_pkgbase%%.*}-$_pkgsnap/gcc-${ 0030-gdc-unconditionally-link-libgphobos-against-libucont.patch 0031-druntime-link-against-libucontext-on-all-platforms.patch 0032-libgnat-time_t-is-always-64-bit-on-musl-libc.patch + 0033-libphobos-do-not-use-LFS64-symbols.patch " # we build out-of-tree @@ -780,36 +781,37 @@ gdb() { sha512sums=" bcad5977ff9b0fe66df53e985ddcf0be1727860f76025a09c2ea786bd6d4c7f1129776ad2e52912c16824fb5d870188d44a24125db78603d78da75c13d207311 gcc-13-20230527.tar.xz -a39a2485fcffb05757e8a9100985a4c87cc472028ad756e1992747d3e737bd7526d2cc054f7f0e7c24708d2ba9e898eaebf3f2db424a1895daf796e126772e5e 0001-posix_memalign.patch -a7bf2f69dc983c87dcc480b7c03d80d26128c89afbfea7f035694d7076aacf9361d39b734de5353b52e4e448e84aac68812006da42664bae661b66d4f8ea5098 0002-gcc-poison-system-directories.patch -a0d4f99e0b3bc0c653d9e23b91c602d1e1ce22d67731aaf76ee267654fcffdfdfc2982b4e99ef6b5523def4cfd5a96e2a20aa5f9efa5256315e824dac3bab806 0003-specs-turn-on-Wl-z-now-by-default.patch -ae94863ffecb30a40f3fd79f8b31106bbf8a17dbf13c6036847f1ba2726cc96f2a957f4694f3c880c06ee1dc8fbd990e957b9b55b0275e7d8cc7df10286942fa 0004-Turn-on-D_FORTIFY_SOURCE-2-by-default-for-C-C-ObjC-O.patch -2356813aec1ff0a3e82fedfe5dbd0f8c6d442cf567851db40077f98d659b7d048a5349e1ac9c056384a663dad08782d80e29675a457c503200b274a50a6db72d 0005-On-linux-targets-pass-as-needed-by-default-to-the-li.patch -c9ee725e69b20f15029920bc187178fbb1c6f0375f16ea1a1052187e591569618c93b108b0f4c387530d976e5daba607b9b76e5ec14a776799324ce7f7c3b11d 0006-Enable-Wformat-and-Wformat-security-by-default.patch -70fe923321aa50bd4bf9b67d3bb872e03ecd5dd9669e783d7893513c0c86aaca6cac39c7dcc5818bfd4e5ba59f7e2b2e790ac87fcb0dc348c543c15bbb3f7064 0007-Enable-Wtrampolines-by-default.patch -fa3106eb878ea48479f3145c837b4bb3e563edb9e0535b833f5d7006507af7427902b45c56751c8220eb828e02219e4c54835aa4c0c6eebf797bc29d3d9a7036 0008-Disable-ssp-on-nostdlib-nodefaultlibs-and-ffreestand.patch -8054b3fb3b9e53000fb00229675b6408defac71f38fceff78372e154990540a23b1790cd7b30a61bfd2ae982cc7c9c8c0405398173abd5618e1814d3ccd85ce9 0009-Ensure-that-msgfmt-doesn-t-encounter-problems-during.patch -1591ba8c8e873d3e38da61038df0b0da0594f15dd8659c1a2a3f834d55599fc7adab18713c26bcfe389a023dc12d7e00231c4b6b61f6b23ff602c8360d459115 0010-Don-t-declare-asprintf-if-defined-as-a-macro.patch -4d03d0bcb31e7a9e171ad408514ec4b1f90783891345bfbf65e513798271b1bbca41a7da616a4ae947a6ba1343a0df9b95233fa202eec70e88fec485841f2413 0011-libiberty-copy-PIC-objects-during-build-process.patch -62574f57043a24ebc644dd761aa46334071c6f0e721375a83f36099b2514dcc7df0b2900fcd52dee7754664e3f59f7686d8b39bf9df5c61893206f34f485cb49 0012-libgcc_s.patch -342782bdaaed8107758345fddb01be3df9e880af235f40c598d46a35c9b1499b7ca10d968f381af168886500aca5a155175d1576f1c30a00555da7467b9d1ccc 0013-nopie.patch -e65bae2cce0e17586384b100ef3dbde232d9f7809cfd40dedb466a24ff2d87b92d68b1a02fe29ec958561bad49658c6a474eae32dd2ee151715808cb5bbfd1a9 0014-ada-fix-shared-linking.patch -d23962505d7bfa99180edfe727df80e4b5d101697537d818327d9e836e90305b16de95729c70268150b55268d01ad5f1d92b70a0a056884f70abf5c4d5870e27 0015-build-fix-CXXFLAGS_FOR_BUILD-passing.patch -a4621dca1edb35e2648a348240bd6790e49b9db1fe7b9f81777222d4b1b241b3ee56a4fca9a02964a00ccc4bd291e37d5911fd142d55002424cd9b9e39f7f98f 0016-add-fortify-headers-paths.patch -3ab96307b31a45e40e174986d13bba620f91954738d84f02ed024854a2cabebf5e6e62589c7006097eb4fb76d5ec526589a877cb8c01f90e5b24819fb191c182 0017-Alpine-musl-package-provides-libssp_nonshared.a.-We-.patch -da8b091796740d315f2e23cc63820f1f5ed242f5ce04acf1603fa308b6f3e09088b6976a984180ff54cefdfa4b279706e1ef5df675c0644028fbf3c948ee6e37 0018-DP-Use-push-state-pop-state-for-gold-as-well-when-li.patch -39fec69162c86160ee24030c9f14303dc8aac3341f1a8eabb23d1db58c63a3e7252b5b19172ace6730064a9bf1a848d83882f59b4ada319de46dc99ffbd30c83 0019-aarch64-disable-multilib-support.patch -da2da38d118213567cfbe7c81a8c60deff8e77306b4d5e44d208dfcb6ebc7f29c3964106ebf3dd130edb8a343cc7ecddb3314c14488a429301dbf4750edc65ea 0020-s390x-disable-multilib-support.patch -d74ba03a6da1bcc18e70f017616ab2a1b901e8d04dcb6ea994420aecd042378ec440652ba1168b05a40ddff431ae5b69a19148e928fa70e3e15ba91a03224fad 0021-ppc64-le-disable-multilib-support.patch -828281a2e7404eedfd7a9a90a553ca7e4eab2a19d2a442faa69c3c2ecefe1a3750426bf5fe6d421dedbfba83feddbba04cb6938658d15110b4007813319713c0 0022-x86_64-disable-multilib-support.patch -c7d76f6d987e51e488e404ca75a4c44ed35be6fda925cf0f4cfc9d85e71df6b034d514fdd2748e26d889f8ee30a252224096241348cd06516f2469a3ed6a6a35 0023-riscv-disable-multilib-support.patch -42d9cce946d51d046a96930335915c927d2bb846d6cff685351f58a1006eb5f831b0fd928091df17ed5d4ac1efbbd359b54c325c40e70737d0302d22c8262606 0024-always-build-libgcc_eh.a.patch -c45c449e5304a7483b1141f87a53ab4658402dec8fa5d5116fa7a5e4bebba322da3214cf85c9b25e1c6d040ec81c0094b56a1ed4eefbcde91235816aa0159c6e 0025-ada-libgnarl-compatibility-for-musl.patch -e09ef88df90c4b484ab4172d7ac68c1defd9f1897fadfcb23572e2829e0f795f3eeb1e5ceeb6aac76cab938a0962371e99c168dcf1c2c4c31c8a8b4fa774dc3e 0026-ada-musl-support-fixes.patch -0661fe9d2a61d4de8d9862d6d936bad8236f9ce679b5e40eea7d54b042a7f860f21103e489a8c7a2b12b1e368194ffeb9b4672d7086ebf4189c77f0a27f27a71 0027-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch -68da13272861a0b3f33022350135660af9a060d03529b610dddf540fb77050647934f1a463c681d1556fa0005b6c16fe76cad285667d1349d5be50ccc83c530e 0028-configure-fix-detection-of-atomic-builtins-in-libato.patch -f638c4d7a3fb54d5fd76b7e9b49d8dd1041347409f842453bf862586e2770d595aa9e58f8c1ec45e3c37235d5e74b7327f4610a3cad81c0a757a1271e5a0e572 0029-libstdc-do-not-throw-exceptions-for-non-C-locales-on.patch -f6f2971f4e1bc58c0aeb2a62d9ad551a0fe855b9086f308dce2bb713214415c9679e8e6547290b1514dfd3bc7296d3dfdb7c2964289bbec737984a7810e5ef5d 0030-gdc-unconditionally-link-libgphobos-against-libucont.patch -ab26344341f5e75673e3a95590fb59fde3ee681949c3004e93ef04af9f1fe2d063c22fc21d14882808d3331ce9eeb135a33b87aeed4d3bf74cc9b087ac56610e 0031-druntime-link-against-libucontext-on-all-platforms.patch -5dfdd7645ba5090ac46e025ce3ce629cbf612518654dced2159e0a621d0ef8e231514bad4746aa8863e544077502d4842486b978a0c3857c4ad48b20c49ef2d1 0032-libgnat-time_t-is-always-64-bit-on-musl-libc.patch +af3d297e6e6aa9076fd09d128d72d72cb9c225ee377f3c65cc7647620b956ac463e8f744c808b045102ab7ed131cbaa3d511e121e5c820ac93f29374bb1f4281 0001-posix_memalign.patch +1be15c3740749731e606eed65f99c274fca2072cc8c907f036f44f3f03047af356fd2f1b2b5b8a082dac6f9046998dde400f8acb4046d14702dace7d976ff78f 0002-gcc-poison-system-directories.patch +a43fd3091f7cecba66f6904d4241a3d04b084c6eab820f34d36a445fa57b44b0a65613550544c179e314a3d516c2cbd8f245a3f001a0854b99c7bbac171c5756 0003-specs-turn-on-Wl-z-now-by-default.patch +b8dd907022785d5f3edd5b6575a1343d54a0c84d935e76a35308dcf2cb602a03e8b91fb51431a9be970eb797f0ae8d4f64f93ec97573cc0fdac61c0dba5ab79f 0004-Turn-on-D_FORTIFY_SOURCE-2-by-default-for-C-C-ObjC-O.patch +f93ec8f926a014cd43e70589ce188ca0ef24d216617184bcb81e9c9cbd56aeeede6653489f2d31105c51cab7ea94499db5ec46528ad6e14d33d8e90e2c95dc29 0005-On-linux-targets-pass-as-needed-by-default-to-the-li.patch +966012aa0a9271232d271d548c1029af3567aaf0b1d3d1ef502ad6fa18cb1c6709f8e7f7124c58040777ddd84bca68490255664a02f0a626d9e76aa4a3949980 0006-Enable-Wformat-and-Wformat-security-by-default.patch +503789bae52d70ddae2cb55ab5046b149f03af95c8341927712d1f7c6c2d25db1fa2ee19f0832d477357162adb276f287c66b702565b684162a2f43b69157d9f 0007-Enable-Wtrampolines-by-default.patch +1488ae4f29e3d9416430e1a10e9201d4c1cad10515ff0921756e98b6be4ec5aa8adbd94d7e5fe4dab446bdf495183fbd6d04cd53a69e5d7f2d1963eeb739daf7 0008-Disable-ssp-on-nostdlib-nodefaultlibs-and-ffreestand.patch +6785152ee7d25ccfdb5bb14ccb08e9fa21433f3f9567b12c7174ec77c37d2437737bde60d8b4be41927eaf40efe46d24348e95ccde78428877f296f33642ab49 0009-Ensure-that-msgfmt-doesn-t-encounter-problems-during.patch +8ca5ef6c9ad56c0314a2230ef6d8d21e0bffdc1289f573991077d6ed1007e30d4cbefe00b0ea72718c09020bb8275178f028ce6763829f7e34255a9b84e5332f 0010-Don-t-declare-asprintf-if-defined-as-a-macro.patch +6909b33e6067c3aef3f6a6975c9c35523d3aa7cb1e8bdaed73804b9afd28890fc868e54f806ac31b134a9c783b2e4774e561f9a7c456c6dba85c17acee1aa84d 0011-libiberty-copy-PIC-objects-during-build-process.patch +2ff9b6828b25ea6ede730954131ccdcbdd7457f0fc32c0ba87dc9a4732a22f9bb87086b1429f7ebd04859ea66b7b3682fc75e8d81e96b2b74e9a6891456f6835 0012-libgcc_s.patch +eb1241be648e0371dd83bed55e1902b7867938cb71fa5ed09b8e1ecfb81ee5da40abc42f2ab515217c8e70234f923fc1b85ec137fd7a58cbfaf357f732cd16f7 0013-nopie.patch +4cd04db2d503d4cc224b08a39b4130056df340ea27c2d2c8b682096516255d4f431af2a9cf8bf1fb946b1499f1157123de666beaef72875ab3e678dde1dddce2 0014-ada-fix-shared-linking.patch +07c159267d0f3fea64f504ce0f995e2e1dab5c96cc00198698ff24392d3cb242915ac373f69f8fc3fbc12bd60fa2c5d5b22bbf01aba938bcb6c9d2541c1701f0 0015-build-fix-CXXFLAGS_FOR_BUILD-passing.patch +548c7e0f7795405f46c9177638c6c20dca1d3de850a8e238ac2278887924be080d243135d246e7c15c0eb0c82b6d58cec5afbcba26da45c294a3e3de54b12e9b 0016-add-fortify-headers-paths.patch +3e50bec315f257f57e5fdc830a91a813451348f4ed2b7d43d628544592d684e0971e2b00b614f46d0b5902fa530f13db7c86bedc180da6a700a96f1e4be2ad88 0017-Alpine-musl-package-provides-libssp_nonshared.a.-We-.patch +c777cf9ed9e0a9d91b5539a12375679f37b101e35aae6a70d113074138f4eb47afeae454206d47f5a8d6e5d437640a754839cc67cfa81a3269cc4ee4fefa8a6b 0018-DP-Use-push-state-pop-state-for-gold-as-well-when-li.patch +5b3e6875725b0a63666af7709e55154774045f1e03ef7e8620cf3cf9d50bfd852259b26e8f072613e02b106c0a09834f6223f21084362ff6a7697ba874ab1a14 0019-aarch64-disable-multilib-support.patch +bc7790e9012985d8f2147476d57f580e966b83323b596914575518d80db51c27bd7080116ff6aef91fcf0de6712f4710a32f1c272c7fc927f0f8a4ee90fc547b 0020-s390x-disable-multilib-support.patch +4284db01201fa1e9cebda4098b61b0c9c0319f86e0870e26e991df4b902cef6381b032f4ba83ba4e6b2537b2e14bf6e1069bba8a55054d70421769fbca3a5d80 0021-ppc64-le-disable-multilib-support.patch +a151bd420781dae743c3406657d111a226e3170b258d7a0ce32c7c959c8702d504249222071e329c24dc74ebdcd9fafd36cb5a15d153714c6fc52e9b399353cb 0022-x86_64-disable-multilib-support.patch +59a32ab970d83a7be15e75be73dcbf760df1a16768568ab8bfdb7519b97b53096cb9f9db5fbefe01c23957bb5f84f89eb44df3bd09ec168ab0dfb49036246b04 0023-riscv-disable-multilib-support.patch +e083d4fdfdc22d318d8cb75c7b7ec9b1426cb0a4b66c35766a0c59aab0151a69cc40a58041ef7b2475e6c6c7d7130fbe8898f04b28008cec36076ed9b74f8b3e 0024-always-build-libgcc_eh.a.patch +c3c3f80d48d79a8ea182d6b193cbc9334a04f8620bf53f44c7a1016a184c0113754d25c8ab912fae7c985147454f3c3dcaea05de05f9232bfa44b377a7740ebb 0025-ada-libgnarl-compatibility-for-musl.patch +8f7392f6339488916b94ef5bae8e13991462b8ea4ce8317eb7b70eac59785b0a68fae26fee5b819e2889a365e512693a650f33c59848537568798b859884ad17 0026-ada-musl-support-fixes.patch +8198c2761551912e286d4cbe8d9f3feadc63cba1cb03f9fec739b8127643714b559fbaa8d16f6f9605836cc660dbdd10d4d2cdf322418a9b135a03b79577e58e 0027-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch +65410e7eb0e9cfb202570365cac76ba951ec52332a02d16bfece10e4f90ea1c2feccc0aee8d3b57ec36c3d83dc3e48b80c077458106dc031fc4b9a9fe7386466 0028-configure-fix-detection-of-atomic-builtins-in-libato.patch +023b3f79edd904a2fdafa903288626467aba43777ab40b53875fc3fb126a64af24b772ae06266afe93aa09f594c494b6e2c3b4d94eb9da724bb130978242a07c 0029-libstdc-do-not-throw-exceptions-for-non-C-locales-on.patch +f37af328cf6562aaed7d3c8a62f4cc9bcd7b858d862e6a7cd9e6f5d8710578cf77c78bfe153b7a736cc1881b5534cd98f99065f821ae961e64840d360966c669 0030-gdc-unconditionally-link-libgphobos-against-libucont.patch +8f5fd0aa921c3fb34bc268a76dea34f6db0dcf120b9c72dce8e691e880fc404f6881d73d0ea20620703da8720fff769215df3bbb679fd32eff78a27fc40a3366 0031-druntime-link-against-libucontext-on-all-platforms.patch +00f1d6434bd8bc2baaad58f3d739e771fd2738af7c86f0ea1a99a70b71153b78d586b3e098cc7a5cdd06b515d70e32acb2b239a0bb3b96078af7a0e52be9d6aa 0032-libgnat-time_t-is-always-64-bit-on-musl-libc.patch +5ee4a721f27908c9f9352f7f0de46f36d6464548b9524c7f45ca92c159966481782182022f2270ef690a1828270bbb9879111cc62b080e5314a235aa83d409e3 0033-libphobos-do-not-use-LFS64-symbols.patch " diff --git a/cross/gcc-armv7/0001-posix_memalign.patch b/cross/gcc-armv7/0001-posix_memalign.patch index 469693531..96fe91015 100644 --- a/cross/gcc-armv7/0001-posix_memalign.patch +++ b/cross/gcc-armv7/0001-posix_memalign.patch @@ -1,7 +1,7 @@ -From 5238749680d22a42e90dc3832ef1ad1c9a5f1c20 Mon Sep 17 00:00:00 2001 +From 3e5acbe356124aa5d8dde0635d652c065a553e7d Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Fri, 26 Jan 2018 20:32:50 +0000 -Subject: [PATCH 01/32] posix_memalign +Subject: [PATCH 01/33] posix_memalign --- gcc/config/i386/pmm_malloc.h | 9 +++++---- diff --git a/cross/gcc-armv7/0002-gcc-poison-system-directories.patch b/cross/gcc-armv7/0002-gcc-poison-system-directories.patch index 21ac0ed95..680fc5572 100644 --- a/cross/gcc-armv7/0002-gcc-poison-system-directories.patch +++ b/cross/gcc-armv7/0002-gcc-poison-system-directories.patch @@ -1,7 +1,7 @@ -From dc71cb9815d25a57430ef5d8e2a87312d8c3b467 Mon Sep 17 00:00:00 2001 +From f986a4a1224fa7d452b415d690aead8d356a7eae Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Fri, 29 Mar 2013 08:59:00 +0400 -Subject: [PATCH 02/32] gcc: poison-system-directories +Subject: [PATCH 02/33] gcc: poison-system-directories Add /sw/include and /opt/include based on the original zecke-no-host-includes.patch patch. The original patch checked for diff --git a/cross/gcc-armv7/0003-specs-turn-on-Wl-z-now-by-default.patch b/cross/gcc-armv7/0003-specs-turn-on-Wl-z-now-by-default.patch index 37e478aa3..f78ff8bb1 100644 --- a/cross/gcc-armv7/0003-specs-turn-on-Wl-z-now-by-default.patch +++ b/cross/gcc-armv7/0003-specs-turn-on-Wl-z-now-by-default.patch @@ -1,7 +1,7 @@ -From 95cd372c839d347b41e22605d569cca6a2119b85 Mon Sep 17 00:00:00 2001 +From 31e2b60000e779ef775daa306120eabcf987852a Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:45:49 +0000 -Subject: [PATCH 03/32] specs: turn on -Wl,-z,now by default +Subject: [PATCH 03/33] specs: turn on -Wl,-z,now by default Previously, we also used to turn on -z relro here, but we now build binutils with --enable-relro, which is functionally equivalent. diff --git a/cross/gcc-armv7/0004-Turn-on-D_FORTIFY_SOURCE-2-by-default-for-C-C-ObjC-O.patch b/cross/gcc-armv7/0004-Turn-on-D_FORTIFY_SOURCE-2-by-default-for-C-C-ObjC-O.patch index ce27b18db..4efa91b31 100644 --- a/cross/gcc-armv7/0004-Turn-on-D_FORTIFY_SOURCE-2-by-default-for-C-C-ObjC-O.patch +++ b/cross/gcc-armv7/0004-Turn-on-D_FORTIFY_SOURCE-2-by-default-for-C-C-ObjC-O.patch @@ -1,7 +1,7 @@ -From 12b0a32aa19334c1b5dd20c9cc3b0ca885e973ce Mon Sep 17 00:00:00 2001 +From 3b910da7d1e81bdd953e6d9ec82020e7b120353b Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:46:22 +0000 -Subject: [PATCH 04/32] Turn on -D_FORTIFY_SOURCE=2 by default for C, C++, +Subject: [PATCH 04/33] Turn on -D_FORTIFY_SOURCE=2 by default for C, C++, ObjC, ObjC++, if the optimization level is > 0 --- diff --git a/cross/gcc-armv7/0005-On-linux-targets-pass-as-needed-by-default-to-the-li.patch b/cross/gcc-armv7/0005-On-linux-targets-pass-as-needed-by-default-to-the-li.patch index 8a54c607a..fa6936d39 100644 --- a/cross/gcc-armv7/0005-On-linux-targets-pass-as-needed-by-default-to-the-li.patch +++ b/cross/gcc-armv7/0005-On-linux-targets-pass-as-needed-by-default-to-the-li.patch @@ -1,7 +1,7 @@ -From 8693307d930c085828c921023219d4c1459a32e9 Mon Sep 17 00:00:00 2001 +From 9c3a2882b1932296ccb1d0ed2900cf046f998a26 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:46:56 +0000 -Subject: [PATCH 05/32] On linux targets pass --as-needed by default to the +Subject: [PATCH 05/33] On linux targets pass --as-needed by default to the linker, but always link the sanitizer libraries with --no-as-needed. --- diff --git a/cross/gcc-armv7/0006-Enable-Wformat-and-Wformat-security-by-default.patch b/cross/gcc-armv7/0006-Enable-Wformat-and-Wformat-security-by-default.patch index 1743495cc..3476e31db 100644 --- a/cross/gcc-armv7/0006-Enable-Wformat-and-Wformat-security-by-default.patch +++ b/cross/gcc-armv7/0006-Enable-Wformat-and-Wformat-security-by-default.patch @@ -1,7 +1,7 @@ -From ec4e37d755110ffb5a4bdba54db89ea06ff3926a Mon Sep 17 00:00:00 2001 +From 288cb2be3abe07dcf2737ed3ac07e93573262bc4 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:47:43 +0000 -Subject: [PATCH 06/32] Enable -Wformat and -Wformat-security by default. +Subject: [PATCH 06/33] Enable -Wformat and -Wformat-security by default. --- gcc/c-family/c.opt | 4 ++-- diff --git a/cross/gcc-armv7/0007-Enable-Wtrampolines-by-default.patch b/cross/gcc-armv7/0007-Enable-Wtrampolines-by-default.patch index 87532e376..05442fa64 100644 --- a/cross/gcc-armv7/0007-Enable-Wtrampolines-by-default.patch +++ b/cross/gcc-armv7/0007-Enable-Wtrampolines-by-default.patch @@ -1,7 +1,7 @@ -From fdc4c95806cb57e98785c991c6ae9d9f2183a914 Mon Sep 17 00:00:00 2001 +From 93e44f7c7b1f11c1f714d6c384b0d39a191ac18a Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:48:24 +0000 -Subject: [PATCH 07/32] Enable -Wtrampolines by default. +Subject: [PATCH 07/33] Enable -Wtrampolines by default. --- gcc/common.opt | 2 +- diff --git a/cross/gcc-armv7/0008-Disable-ssp-on-nostdlib-nodefaultlibs-and-ffreestand.patch b/cross/gcc-armv7/0008-Disable-ssp-on-nostdlib-nodefaultlibs-and-ffreestand.patch index 8e036c843..f76353ed8 100644 --- a/cross/gcc-armv7/0008-Disable-ssp-on-nostdlib-nodefaultlibs-and-ffreestand.patch +++ b/cross/gcc-armv7/0008-Disable-ssp-on-nostdlib-nodefaultlibs-and-ffreestand.patch @@ -1,7 +1,7 @@ -From 547ed1d35f0fa8c04cefb8708c4a148f86ed3397 Mon Sep 17 00:00:00 2001 +From 7aa93d6d9a63c7bedf1e033f6d040e95038537e7 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:49:40 +0000 -Subject: [PATCH 08/32] Disable ssp on -nostdlib, -nodefaultlibs and +Subject: [PATCH 08/33] Disable ssp on -nostdlib, -nodefaultlibs and -ffreestanding Change the buffer size. --- diff --git a/cross/gcc-armv7/0009-Ensure-that-msgfmt-doesn-t-encounter-problems-during.patch b/cross/gcc-armv7/0009-Ensure-that-msgfmt-doesn-t-encounter-problems-during.patch index c8ce3908d..ef9c84b0c 100644 --- a/cross/gcc-armv7/0009-Ensure-that-msgfmt-doesn-t-encounter-problems-during.patch +++ b/cross/gcc-armv7/0009-Ensure-that-msgfmt-doesn-t-encounter-problems-during.patch @@ -1,7 +1,7 @@ -From ee2e986e85a0400402f006ec2ddf2435cac621ba Mon Sep 17 00:00:00 2001 +From e44b295b5b0b917c0b47085f60466a37f890e1c7 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:50:33 +0000 -Subject: [PATCH 09/32] Ensure that msgfmt doesn't encounter problems during +Subject: [PATCH 09/33] Ensure that msgfmt doesn't encounter problems during gcc bootstrapping. Solves error messages like the following: diff --git a/cross/gcc-armv7/0010-Don-t-declare-asprintf-if-defined-as-a-macro.patch b/cross/gcc-armv7/0010-Don-t-declare-asprintf-if-defined-as-a-macro.patch index 4e2992549..16a7279a0 100644 --- a/cross/gcc-armv7/0010-Don-t-declare-asprintf-if-defined-as-a-macro.patch +++ b/cross/gcc-armv7/0010-Don-t-declare-asprintf-if-defined-as-a-macro.patch @@ -1,7 +1,7 @@ -From 2ed284234b08b5018fb542c784e6b8757b1e4967 Mon Sep 17 00:00:00 2001 +From f041dcd8f775e03b85a49e3aeef0870e2333b10e Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:52:07 +0000 -Subject: [PATCH 10/32] Don't declare asprintf if defined as a macro. +Subject: [PATCH 10/33] Don't declare asprintf if defined as a macro. --- include/libiberty.h | 3 +++ diff --git a/cross/gcc-armv7/0011-libiberty-copy-PIC-objects-during-build-process.patch b/cross/gcc-armv7/0011-libiberty-copy-PIC-objects-during-build-process.patch index fecb28d30..5d6009522 100644 --- a/cross/gcc-armv7/0011-libiberty-copy-PIC-objects-during-build-process.patch +++ b/cross/gcc-armv7/0011-libiberty-copy-PIC-objects-during-build-process.patch @@ -1,7 +1,7 @@ -From 52544d0abdcf63f33446f880fcaae1d0aa589a81 Mon Sep 17 00:00:00 2001 +From 6fc13fce114648b1a64e658b469a4697382d18bb Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:53:00 +0000 -Subject: [PATCH 11/32] libiberty: copy PIC objects during build process +Subject: [PATCH 11/33] libiberty: copy PIC objects during build process --- libiberty/Makefile.in | 1 + diff --git a/cross/gcc-armv7/0012-libgcc_s.patch b/cross/gcc-armv7/0012-libgcc_s.patch index 6723faf13..354f594b2 100644 --- a/cross/gcc-armv7/0012-libgcc_s.patch +++ b/cross/gcc-armv7/0012-libgcc_s.patch @@ -1,7 +1,7 @@ -From eff4677a5511567ab3d550a5989ee0805fc3e1a7 Mon Sep 17 00:00:00 2001 +From 6a1955bbf49836ad99b23501f42283842e01761b Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Sat, 24 Oct 2015 20:09:53 +0000 -Subject: [PATCH 12/32] libgcc_s +Subject: [PATCH 12/33] libgcc_s --- gcc/config/i386/i386-expand.cc | 4 ++-- diff --git a/cross/gcc-armv7/0013-nopie.patch b/cross/gcc-armv7/0013-nopie.patch index db80a043d..c73cd12bb 100644 --- a/cross/gcc-armv7/0013-nopie.patch +++ b/cross/gcc-armv7/0013-nopie.patch @@ -1,7 +1,7 @@ -From 8af4ddcecc9dc43d714798d255a21e12985721b9 Mon Sep 17 00:00:00 2001 +From 558e95aa2b0f3bbf416e1bb572e5f47bddc8601c Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Sat, 7 Nov 2015 02:08:05 +0000 -Subject: [PATCH 13/32] nopie +Subject: [PATCH 13/33] nopie --- gcc/configure | 27 +++++++++++++++++++++++++++ diff --git a/cross/gcc-armv7/0014-ada-fix-shared-linking.patch b/cross/gcc-armv7/0014-ada-fix-shared-linking.patch index 46c1814e6..b31f91b67 100644 --- a/cross/gcc-armv7/0014-ada-fix-shared-linking.patch +++ b/cross/gcc-armv7/0014-ada-fix-shared-linking.patch @@ -1,7 +1,7 @@ -From 1330c37f63c0388480cfa369df2b437e9c8cc878 Mon Sep 17 00:00:00 2001 +From ecad19db42776c536bd4f6033ec1891ffae03720 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:59:16 +0000 -Subject: [PATCH 14/32] ada: fix shared linking +Subject: [PATCH 14/33] ada: fix shared linking --- gcc/ada/link.c | 12 ++++++------ diff --git a/cross/gcc-armv7/0015-build-fix-CXXFLAGS_FOR_BUILD-passing.patch b/cross/gcc-armv7/0015-build-fix-CXXFLAGS_FOR_BUILD-passing.patch index 951158940..3aca83c4b 100644 --- a/cross/gcc-armv7/0015-build-fix-CXXFLAGS_FOR_BUILD-passing.patch +++ b/cross/gcc-armv7/0015-build-fix-CXXFLAGS_FOR_BUILD-passing.patch @@ -1,7 +1,7 @@ -From ceb43810c502b238cb487af6e84b1c80f2105f1a Mon Sep 17 00:00:00 2001 +From 8500b4cdd039c16a02a8acabd124b92865871979 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:59:43 +0000 -Subject: [PATCH 15/32] build: fix CXXFLAGS_FOR_BUILD passing +Subject: [PATCH 15/33] build: fix CXXFLAGS_FOR_BUILD passing --- Makefile.in | 1 + diff --git a/cross/gcc-armv7/0016-add-fortify-headers-paths.patch b/cross/gcc-armv7/0016-add-fortify-headers-paths.patch index 8e8a0b74e..dfdfa414d 100644 --- a/cross/gcc-armv7/0016-add-fortify-headers-paths.patch +++ b/cross/gcc-armv7/0016-add-fortify-headers-paths.patch @@ -1,7 +1,7 @@ -From ebc8167db85bc37a59f02fec6904829652989564 Mon Sep 17 00:00:00 2001 +From e893ad827215a7c090a835e20a81559f4044fb47 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 07:01:06 +0000 -Subject: [PATCH 16/32] add fortify-headers paths +Subject: [PATCH 16/33] add fortify-headers paths --- gcc/config/linux.h | 2 ++ diff --git a/cross/gcc-armv7/0017-Alpine-musl-package-provides-libssp_nonshared.a.-We-.patch b/cross/gcc-armv7/0017-Alpine-musl-package-provides-libssp_nonshared.a.-We-.patch index e3c8a07b8..656c69142 100644 --- a/cross/gcc-armv7/0017-Alpine-musl-package-provides-libssp_nonshared.a.-We-.patch +++ b/cross/gcc-armv7/0017-Alpine-musl-package-provides-libssp_nonshared.a.-We-.patch @@ -1,7 +1,7 @@ -From 86a566d0ed9da32b5f3a6ac48999ebbac6dce4a5 Mon Sep 17 00:00:00 2001 +From 064afc74f18f2a00771fc2600029a713b8708845 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20Ter=C3=A4s?= Date: Fri, 21 Aug 2020 07:03:00 +0000 -Subject: [PATCH 17/32] Alpine musl package provides libssp_nonshared.a. We +Subject: [PATCH 17/33] Alpine musl package provides libssp_nonshared.a. We link to it unconditionally, as otherwise we get link failures if some objects are -fstack-protector built and final link happens with -fno-stack-protector. This seems to be the common case when bootstrapping gcc, the piepatches do diff --git a/cross/gcc-armv7/0018-DP-Use-push-state-pop-state-for-gold-as-well-when-li.patch b/cross/gcc-armv7/0018-DP-Use-push-state-pop-state-for-gold-as-well-when-li.patch index 2a2b90fca..001db4857 100644 --- a/cross/gcc-armv7/0018-DP-Use-push-state-pop-state-for-gold-as-well-when-li.patch +++ b/cross/gcc-armv7/0018-DP-Use-push-state-pop-state-for-gold-as-well-when-li.patch @@ -1,7 +1,7 @@ -From d113a7974d55a8c5e71f0d72202db3e303245d2b Mon Sep 17 00:00:00 2001 +From 45a98ce1f1702424aba4271f7f7570e43a354101 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 07:03:42 +0000 -Subject: [PATCH 18/32] DP: Use --push-state/--pop-state for gold as well when +Subject: [PATCH 18/33] DP: Use --push-state/--pop-state for gold as well when linking libtsan. --- diff --git a/cross/gcc-armv7/0019-aarch64-disable-multilib-support.patch b/cross/gcc-armv7/0019-aarch64-disable-multilib-support.patch index 100736769..19a1afabf 100644 --- a/cross/gcc-armv7/0019-aarch64-disable-multilib-support.patch +++ b/cross/gcc-armv7/0019-aarch64-disable-multilib-support.patch @@ -1,7 +1,7 @@ -From 3ba91105e2299d591d817164e2c98b905460892d Mon Sep 17 00:00:00 2001 +From 6a2e902dc8abcfd44522b9224fd759d038db51f5 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Thu, 6 Jan 2022 03:12:55 +0000 -Subject: [PATCH 19/32] aarch64: disable multilib support +Subject: [PATCH 19/33] aarch64: disable multilib support multilib is unsupported on Alpine GCC --- diff --git a/cross/gcc-armv7/0020-s390x-disable-multilib-support.patch b/cross/gcc-armv7/0020-s390x-disable-multilib-support.patch index 897c28bc3..2817a092e 100644 --- a/cross/gcc-armv7/0020-s390x-disable-multilib-support.patch +++ b/cross/gcc-armv7/0020-s390x-disable-multilib-support.patch @@ -1,7 +1,7 @@ -From ac6348347f14ba8274655aa6af27ccfbf89a437f Mon Sep 17 00:00:00 2001 +From 6e7c72ee05353a284d9c9809035e7ff488b4b8c1 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Thu, 6 Jan 2022 03:13:59 +0000 -Subject: [PATCH 20/32] s390x: disable multilib support +Subject: [PATCH 20/33] s390x: disable multilib support multilib is not supported on Alpine GCC at present --- diff --git a/cross/gcc-armv7/0021-ppc64-le-disable-multilib-support.patch b/cross/gcc-armv7/0021-ppc64-le-disable-multilib-support.patch index 7de6bf95d..2dc2bbc36 100644 --- a/cross/gcc-armv7/0021-ppc64-le-disable-multilib-support.patch +++ b/cross/gcc-armv7/0021-ppc64-le-disable-multilib-support.patch @@ -1,7 +1,7 @@ -From 969630b9b930860077fcc9b08972d18b40518828 Mon Sep 17 00:00:00 2001 +From 44655aa3be8d5354fb82a42317a9ac6ac1b50164 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Thu, 6 Jan 2022 03:14:33 +0000 -Subject: [PATCH 21/32] ppc64[le]: disable multilib support +Subject: [PATCH 21/33] ppc64[le]: disable multilib support multilib is not presently supported on Alpine GCC --- diff --git a/cross/gcc-armv7/0022-x86_64-disable-multilib-support.patch b/cross/gcc-armv7/0022-x86_64-disable-multilib-support.patch index 566951533..d69ec3167 100644 --- a/cross/gcc-armv7/0022-x86_64-disable-multilib-support.patch +++ b/cross/gcc-armv7/0022-x86_64-disable-multilib-support.patch @@ -1,7 +1,7 @@ -From a34c8e7255f71228e4bef4d51fbb791a10013658 Mon Sep 17 00:00:00 2001 +From 5f79236c49bd0c2c36440f0ef83cea02d52fcaaf Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Thu, 6 Jan 2022 03:14:54 +0000 -Subject: [PATCH 22/32] x86_64: disable multilib support +Subject: [PATCH 22/33] x86_64: disable multilib support multilib is not presently supported on Alpine GCC --- diff --git a/cross/gcc-armv7/0023-riscv-disable-multilib-support.patch b/cross/gcc-armv7/0023-riscv-disable-multilib-support.patch index f81c30a61..7b5c9a56d 100644 --- a/cross/gcc-armv7/0023-riscv-disable-multilib-support.patch +++ b/cross/gcc-armv7/0023-riscv-disable-multilib-support.patch @@ -1,7 +1,7 @@ -From abf619dfadb883809457037a52d5eb77acf25dd5 Mon Sep 17 00:00:00 2001 +From 4605e64b3a076411f2f8134256c400eb58bcc1c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Tempel?= Date: Mon, 3 Jan 2022 07:14:48 +0100 -Subject: [PATCH 23/32] riscv: disable multilib support +Subject: [PATCH 23/33] riscv: disable multilib support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit diff --git a/cross/gcc-armv7/0024-always-build-libgcc_eh.a.patch b/cross/gcc-armv7/0024-always-build-libgcc_eh.a.patch index 454279070..b1ab2e715 100644 --- a/cross/gcc-armv7/0024-always-build-libgcc_eh.a.patch +++ b/cross/gcc-armv7/0024-always-build-libgcc_eh.a.patch @@ -1,7 +1,7 @@ -From fc731db4cee01c38c1454e55ec51cb78d6713188 Mon Sep 17 00:00:00 2001 +From a178cfeb975d79bb9b9fd877ab4c6e05d10b147e Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 07:05:41 +0000 -Subject: [PATCH 24/32] always build libgcc_eh.a +Subject: [PATCH 24/33] always build libgcc_eh.a highly inspired by: http://landley.net/hg/aboriginal/file/7e0747a665ab/sources/patches/gcc-core-libgcceh.patch diff --git a/cross/gcc-armv7/0025-ada-libgnarl-compatibility-for-musl.patch b/cross/gcc-armv7/0025-ada-libgnarl-compatibility-for-musl.patch index 1cc9c1bd3..39d77413f 100644 --- a/cross/gcc-armv7/0025-ada-libgnarl-compatibility-for-musl.patch +++ b/cross/gcc-armv7/0025-ada-libgnarl-compatibility-for-musl.patch @@ -1,7 +1,7 @@ -From e3271b1970ecb6dab612333ec93c8bd2107cc598 Mon Sep 17 00:00:00 2001 +From 5bc3deb9bc2679ad4f6f189a65e3643b550587a1 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 07:06:30 +0000 -Subject: [PATCH 25/32] ada: libgnarl compatibility for musl +Subject: [PATCH 25/33] ada: libgnarl compatibility for musl --- gcc/ada/libgnarl/s-osinte__linux.ads | 11 ------ diff --git a/cross/gcc-armv7/0026-ada-musl-support-fixes.patch b/cross/gcc-armv7/0026-ada-musl-support-fixes.patch index 8b52c83e8..c36ff6237 100644 --- a/cross/gcc-armv7/0026-ada-musl-support-fixes.patch +++ b/cross/gcc-armv7/0026-ada-musl-support-fixes.patch @@ -1,7 +1,7 @@ -From fdfa9e6dfcc384bce6e525a9ce3a280b808b8312 Mon Sep 17 00:00:00 2001 +From e1e6dccc9124e0907c5ae174d20acb3bad87e633 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 07:07:48 +0000 -Subject: [PATCH 26/32] ada: musl support fixes +Subject: [PATCH 26/33] ada: musl support fixes --- gcc/ada/Makefile.rtl | 10 +++++----- diff --git a/cross/gcc-armv7/0027-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch b/cross/gcc-armv7/0027-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch index c1a7521b5..febd64005 100644 --- a/cross/gcc-armv7/0027-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch +++ b/cross/gcc-armv7/0027-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch @@ -1,7 +1,7 @@ -From 4a8793a2233c4bd91cd33958fff1420c4bf19333 Mon Sep 17 00:00:00 2001 +From 9506e729f0e4f66f4018fbfc5340a568e8520264 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Wed, 9 Dec 2020 07:42:06 +0000 -Subject: [PATCH 27/32] configure: Add --enable-autolink-libatomic, use in +Subject: [PATCH 27/33] configure: Add --enable-autolink-libatomic, use in LINK_GCC_C_SEQUENCE_SPEC [PR81358] This fixes issues with RISC-V. diff --git a/cross/gcc-armv7/0028-configure-fix-detection-of-atomic-builtins-in-libato.patch b/cross/gcc-armv7/0028-configure-fix-detection-of-atomic-builtins-in-libato.patch index b2959c347..939f76b7b 100644 --- a/cross/gcc-armv7/0028-configure-fix-detection-of-atomic-builtins-in-libato.patch +++ b/cross/gcc-armv7/0028-configure-fix-detection-of-atomic-builtins-in-libato.patch @@ -1,7 +1,7 @@ -From c9b40cfd31fd166e7481480218c074ba6b1214cb Mon Sep 17 00:00:00 2001 +From 966da83d0d75482a1489804593ae61f3f8e3b385 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Tempel?= Date: Sun, 29 Aug 2021 12:23:34 +0200 -Subject: [PATCH 28/32] configure: fix detection of atomic builtins in +Subject: [PATCH 28/33] configure: fix detection of atomic builtins in libatomic configure script Alpine's --enable-autolink-libatomic (which is enabled for riscv64 by diff --git a/cross/gcc-armv7/0029-libstdc-do-not-throw-exceptions-for-non-C-locales-on.patch b/cross/gcc-armv7/0029-libstdc-do-not-throw-exceptions-for-non-C-locales-on.patch index 3d47c6531..4d13cd6e6 100644 --- a/cross/gcc-armv7/0029-libstdc-do-not-throw-exceptions-for-non-C-locales-on.patch +++ b/cross/gcc-armv7/0029-libstdc-do-not-throw-exceptions-for-non-C-locales-on.patch @@ -1,7 +1,7 @@ -From e2b9546b31d33f7d13ba675171025cf30ae2e21e Mon Sep 17 00:00:00 2001 +From e74f4b3a10d96f06b15df9d9b61d5b10a84ec084 Mon Sep 17 00:00:00 2001 From: Samuel Holland Date: Thu, 30 Jun 2022 16:44:51 +0000 -Subject: [PATCH 29/32] libstdc++: do not throw exceptions for non-C locales on +Subject: [PATCH 29/33] libstdc++: do not throw exceptions for non-C locales on musl targets --- diff --git a/cross/gcc-armv7/0030-gdc-unconditionally-link-libgphobos-against-libucont.patch b/cross/gcc-armv7/0030-gdc-unconditionally-link-libgphobos-against-libucont.patch index d5fc03179..83f1eb06f 100644 --- a/cross/gcc-armv7/0030-gdc-unconditionally-link-libgphobos-against-libucont.patch +++ b/cross/gcc-armv7/0030-gdc-unconditionally-link-libgphobos-against-libucont.patch @@ -1,7 +1,7 @@ -From f036f4b4dc5476429e5485cdc5cc15c29da4d7e1 Mon Sep 17 00:00:00 2001 +From bdc2699f0284e59842e5d3a39fc426550b4ba0e8 Mon Sep 17 00:00:00 2001 From: Mathias LANG Date: Mon, 17 Jan 2022 03:49:21 +0000 -Subject: [PATCH 30/32] gdc: unconditionally link libgphobos against +Subject: [PATCH 30/33] gdc: unconditionally link libgphobos against libucontext ref: alpine/aports#13422 diff --git a/cross/gcc-armv7/0031-druntime-link-against-libucontext-on-all-platforms.patch b/cross/gcc-armv7/0031-druntime-link-against-libucontext-on-all-platforms.patch index e07474deb..be9959ccf 100644 --- a/cross/gcc-armv7/0031-druntime-link-against-libucontext-on-all-platforms.patch +++ b/cross/gcc-armv7/0031-druntime-link-against-libucontext-on-all-platforms.patch @@ -1,7 +1,7 @@ -From 3b27d7eebc87675a377a68b8bb67bdd3399de67f Mon Sep 17 00:00:00 2001 +From 82780d18bfcb7dabc215d4b89b1187cb253e15f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Tempel?= Date: Sat, 16 Jul 2022 09:21:11 +0200 -Subject: [PATCH 31/32] druntime: link against libucontext on all platforms +Subject: [PATCH 31/33] druntime: link against libucontext on all platforms On musl-based Linux distributions, swapcontext etc. are not provided by musl but instead by libucontext. Hence, we _always_ need to link against diff --git a/cross/gcc-armv7/0032-libgnat-time_t-is-always-64-bit-on-musl-libc.patch b/cross/gcc-armv7/0032-libgnat-time_t-is-always-64-bit-on-musl-libc.patch index bd28ec3b2..4f02e6ce5 100644 --- a/cross/gcc-armv7/0032-libgnat-time_t-is-always-64-bit-on-musl-libc.patch +++ b/cross/gcc-armv7/0032-libgnat-time_t-is-always-64-bit-on-musl-libc.patch @@ -1,7 +1,7 @@ -From 5081b2b7526e11a4877548a2348c53798ba3de7b Mon Sep 17 00:00:00 2001 +From 32fc6be0b339983e31f6285dbc565b906ec983d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Tempel?= Date: Tue, 19 Jul 2022 14:54:07 +0200 -Subject: [PATCH 32/32] libgnat: time_t is always 64-bit on musl libc +Subject: [PATCH 32/33] libgnat: time_t is always 64-bit on musl libc --- gcc/ada/libgnat/s-parame.ads | 2 +- diff --git a/cross/gcc-armv7/0033-libphobos-do-not-use-LFS64-symbols.patch b/cross/gcc-armv7/0033-libphobos-do-not-use-LFS64-symbols.patch new file mode 100644 index 000000000..6ccd1ae98 --- /dev/null +++ b/cross/gcc-armv7/0033-libphobos-do-not-use-LFS64-symbols.patch @@ -0,0 +1,30 @@ +From b5e9f810a8a5963104dd1897c3276f60786f9edb Mon Sep 17 00:00:00 2001 +From: psykose +Date: Mon, 29 May 2023 15:33:11 +0000 +Subject: [PATCH 33/33] libphobos: do not use LFS64 symbols + +musl does not have these since 1.2.4, we can't use the compat interfaces. +--- + libphobos/libdruntime/core/sys/posix/sys/mman.d | 6 +----- + 1 file changed, 1 insertion(+), 5 deletions(-) + +diff --git a/libphobos/libdruntime/core/sys/posix/sys/mman.d b/libphobos/libdruntime/core/sys/posix/sys/mman.d +index 0d3d517d69a..323aa0af72d 100644 +--- a/libphobos/libdruntime/core/sys/posix/sys/mman.d ++++ b/libphobos/libdruntime/core/sys/posix/sys/mman.d +@@ -293,11 +293,7 @@ else version (CRuntime_Bionic) + } + else version (CRuntime_Musl) + { +- static if (__USE_LARGEFILE64) void* mmap64(void*, size_t, int, int, int, off_t); +- static if (__USE_FILE_OFFSET64) +- alias mmap = mmap64; +- else +- void* mmap(void*, size_t, int, int, int, off_t); ++ void* mmap(void*, size_t, int, int, int, off_t); + int munmap(void*, size_t); + } + else version (CRuntime_UClibc) +-- +2.40.1 + diff --git a/cross/gcc-armv7/APKBUILD b/cross/gcc-armv7/APKBUILD index 7ca5d1daf..d7eea7b0b 100644 --- a/cross/gcc-armv7/APKBUILD +++ b/cross/gcc-armv7/APKBUILD @@ -34,7 +34,7 @@ _pkgsnap="${pkgver##*_git}" [ "$CHOST" != "$CTARGET" ] && _target="-$CTARGET_ARCH" || _target="" pkgname=gcc-armv7 -pkgrel=0 +pkgrel=1 pkgdesc="Stage2 cross-compiler for armv7" url="https://gcc.gnu.org" arch="x86_64" @@ -266,6 +266,7 @@ source="https://dev.alpinelinux.org/archive/gcc/${_pkgbase%%.*}-$_pkgsnap/gcc-${ 0030-gdc-unconditionally-link-libgphobos-against-libucont.patch 0031-druntime-link-against-libucontext-on-all-platforms.patch 0032-libgnat-time_t-is-always-64-bit-on-musl-libc.patch + 0033-libphobos-do-not-use-LFS64-symbols.patch " # we build out-of-tree @@ -780,36 +781,37 @@ gdb() { sha512sums=" bcad5977ff9b0fe66df53e985ddcf0be1727860f76025a09c2ea786bd6d4c7f1129776ad2e52912c16824fb5d870188d44a24125db78603d78da75c13d207311 gcc-13-20230527.tar.xz -a39a2485fcffb05757e8a9100985a4c87cc472028ad756e1992747d3e737bd7526d2cc054f7f0e7c24708d2ba9e898eaebf3f2db424a1895daf796e126772e5e 0001-posix_memalign.patch -a7bf2f69dc983c87dcc480b7c03d80d26128c89afbfea7f035694d7076aacf9361d39b734de5353b52e4e448e84aac68812006da42664bae661b66d4f8ea5098 0002-gcc-poison-system-directories.patch -a0d4f99e0b3bc0c653d9e23b91c602d1e1ce22d67731aaf76ee267654fcffdfdfc2982b4e99ef6b5523def4cfd5a96e2a20aa5f9efa5256315e824dac3bab806 0003-specs-turn-on-Wl-z-now-by-default.patch -ae94863ffecb30a40f3fd79f8b31106bbf8a17dbf13c6036847f1ba2726cc96f2a957f4694f3c880c06ee1dc8fbd990e957b9b55b0275e7d8cc7df10286942fa 0004-Turn-on-D_FORTIFY_SOURCE-2-by-default-for-C-C-ObjC-O.patch -2356813aec1ff0a3e82fedfe5dbd0f8c6d442cf567851db40077f98d659b7d048a5349e1ac9c056384a663dad08782d80e29675a457c503200b274a50a6db72d 0005-On-linux-targets-pass-as-needed-by-default-to-the-li.patch -c9ee725e69b20f15029920bc187178fbb1c6f0375f16ea1a1052187e591569618c93b108b0f4c387530d976e5daba607b9b76e5ec14a776799324ce7f7c3b11d 0006-Enable-Wformat-and-Wformat-security-by-default.patch -70fe923321aa50bd4bf9b67d3bb872e03ecd5dd9669e783d7893513c0c86aaca6cac39c7dcc5818bfd4e5ba59f7e2b2e790ac87fcb0dc348c543c15bbb3f7064 0007-Enable-Wtrampolines-by-default.patch -fa3106eb878ea48479f3145c837b4bb3e563edb9e0535b833f5d7006507af7427902b45c56751c8220eb828e02219e4c54835aa4c0c6eebf797bc29d3d9a7036 0008-Disable-ssp-on-nostdlib-nodefaultlibs-and-ffreestand.patch -8054b3fb3b9e53000fb00229675b6408defac71f38fceff78372e154990540a23b1790cd7b30a61bfd2ae982cc7c9c8c0405398173abd5618e1814d3ccd85ce9 0009-Ensure-that-msgfmt-doesn-t-encounter-problems-during.patch -1591ba8c8e873d3e38da61038df0b0da0594f15dd8659c1a2a3f834d55599fc7adab18713c26bcfe389a023dc12d7e00231c4b6b61f6b23ff602c8360d459115 0010-Don-t-declare-asprintf-if-defined-as-a-macro.patch -4d03d0bcb31e7a9e171ad408514ec4b1f90783891345bfbf65e513798271b1bbca41a7da616a4ae947a6ba1343a0df9b95233fa202eec70e88fec485841f2413 0011-libiberty-copy-PIC-objects-during-build-process.patch -62574f57043a24ebc644dd761aa46334071c6f0e721375a83f36099b2514dcc7df0b2900fcd52dee7754664e3f59f7686d8b39bf9df5c61893206f34f485cb49 0012-libgcc_s.patch -342782bdaaed8107758345fddb01be3df9e880af235f40c598d46a35c9b1499b7ca10d968f381af168886500aca5a155175d1576f1c30a00555da7467b9d1ccc 0013-nopie.patch -e65bae2cce0e17586384b100ef3dbde232d9f7809cfd40dedb466a24ff2d87b92d68b1a02fe29ec958561bad49658c6a474eae32dd2ee151715808cb5bbfd1a9 0014-ada-fix-shared-linking.patch -d23962505d7bfa99180edfe727df80e4b5d101697537d818327d9e836e90305b16de95729c70268150b55268d01ad5f1d92b70a0a056884f70abf5c4d5870e27 0015-build-fix-CXXFLAGS_FOR_BUILD-passing.patch -a4621dca1edb35e2648a348240bd6790e49b9db1fe7b9f81777222d4b1b241b3ee56a4fca9a02964a00ccc4bd291e37d5911fd142d55002424cd9b9e39f7f98f 0016-add-fortify-headers-paths.patch -3ab96307b31a45e40e174986d13bba620f91954738d84f02ed024854a2cabebf5e6e62589c7006097eb4fb76d5ec526589a877cb8c01f90e5b24819fb191c182 0017-Alpine-musl-package-provides-libssp_nonshared.a.-We-.patch -da8b091796740d315f2e23cc63820f1f5ed242f5ce04acf1603fa308b6f3e09088b6976a984180ff54cefdfa4b279706e1ef5df675c0644028fbf3c948ee6e37 0018-DP-Use-push-state-pop-state-for-gold-as-well-when-li.patch -39fec69162c86160ee24030c9f14303dc8aac3341f1a8eabb23d1db58c63a3e7252b5b19172ace6730064a9bf1a848d83882f59b4ada319de46dc99ffbd30c83 0019-aarch64-disable-multilib-support.patch -da2da38d118213567cfbe7c81a8c60deff8e77306b4d5e44d208dfcb6ebc7f29c3964106ebf3dd130edb8a343cc7ecddb3314c14488a429301dbf4750edc65ea 0020-s390x-disable-multilib-support.patch -d74ba03a6da1bcc18e70f017616ab2a1b901e8d04dcb6ea994420aecd042378ec440652ba1168b05a40ddff431ae5b69a19148e928fa70e3e15ba91a03224fad 0021-ppc64-le-disable-multilib-support.patch -828281a2e7404eedfd7a9a90a553ca7e4eab2a19d2a442faa69c3c2ecefe1a3750426bf5fe6d421dedbfba83feddbba04cb6938658d15110b4007813319713c0 0022-x86_64-disable-multilib-support.patch -c7d76f6d987e51e488e404ca75a4c44ed35be6fda925cf0f4cfc9d85e71df6b034d514fdd2748e26d889f8ee30a252224096241348cd06516f2469a3ed6a6a35 0023-riscv-disable-multilib-support.patch -42d9cce946d51d046a96930335915c927d2bb846d6cff685351f58a1006eb5f831b0fd928091df17ed5d4ac1efbbd359b54c325c40e70737d0302d22c8262606 0024-always-build-libgcc_eh.a.patch -c45c449e5304a7483b1141f87a53ab4658402dec8fa5d5116fa7a5e4bebba322da3214cf85c9b25e1c6d040ec81c0094b56a1ed4eefbcde91235816aa0159c6e 0025-ada-libgnarl-compatibility-for-musl.patch -e09ef88df90c4b484ab4172d7ac68c1defd9f1897fadfcb23572e2829e0f795f3eeb1e5ceeb6aac76cab938a0962371e99c168dcf1c2c4c31c8a8b4fa774dc3e 0026-ada-musl-support-fixes.patch -0661fe9d2a61d4de8d9862d6d936bad8236f9ce679b5e40eea7d54b042a7f860f21103e489a8c7a2b12b1e368194ffeb9b4672d7086ebf4189c77f0a27f27a71 0027-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch -68da13272861a0b3f33022350135660af9a060d03529b610dddf540fb77050647934f1a463c681d1556fa0005b6c16fe76cad285667d1349d5be50ccc83c530e 0028-configure-fix-detection-of-atomic-builtins-in-libato.patch -f638c4d7a3fb54d5fd76b7e9b49d8dd1041347409f842453bf862586e2770d595aa9e58f8c1ec45e3c37235d5e74b7327f4610a3cad81c0a757a1271e5a0e572 0029-libstdc-do-not-throw-exceptions-for-non-C-locales-on.patch -f6f2971f4e1bc58c0aeb2a62d9ad551a0fe855b9086f308dce2bb713214415c9679e8e6547290b1514dfd3bc7296d3dfdb7c2964289bbec737984a7810e5ef5d 0030-gdc-unconditionally-link-libgphobos-against-libucont.patch -ab26344341f5e75673e3a95590fb59fde3ee681949c3004e93ef04af9f1fe2d063c22fc21d14882808d3331ce9eeb135a33b87aeed4d3bf74cc9b087ac56610e 0031-druntime-link-against-libucontext-on-all-platforms.patch -5dfdd7645ba5090ac46e025ce3ce629cbf612518654dced2159e0a621d0ef8e231514bad4746aa8863e544077502d4842486b978a0c3857c4ad48b20c49ef2d1 0032-libgnat-time_t-is-always-64-bit-on-musl-libc.patch +af3d297e6e6aa9076fd09d128d72d72cb9c225ee377f3c65cc7647620b956ac463e8f744c808b045102ab7ed131cbaa3d511e121e5c820ac93f29374bb1f4281 0001-posix_memalign.patch +1be15c3740749731e606eed65f99c274fca2072cc8c907f036f44f3f03047af356fd2f1b2b5b8a082dac6f9046998dde400f8acb4046d14702dace7d976ff78f 0002-gcc-poison-system-directories.patch +a43fd3091f7cecba66f6904d4241a3d04b084c6eab820f34d36a445fa57b44b0a65613550544c179e314a3d516c2cbd8f245a3f001a0854b99c7bbac171c5756 0003-specs-turn-on-Wl-z-now-by-default.patch +b8dd907022785d5f3edd5b6575a1343d54a0c84d935e76a35308dcf2cb602a03e8b91fb51431a9be970eb797f0ae8d4f64f93ec97573cc0fdac61c0dba5ab79f 0004-Turn-on-D_FORTIFY_SOURCE-2-by-default-for-C-C-ObjC-O.patch +f93ec8f926a014cd43e70589ce188ca0ef24d216617184bcb81e9c9cbd56aeeede6653489f2d31105c51cab7ea94499db5ec46528ad6e14d33d8e90e2c95dc29 0005-On-linux-targets-pass-as-needed-by-default-to-the-li.patch +966012aa0a9271232d271d548c1029af3567aaf0b1d3d1ef502ad6fa18cb1c6709f8e7f7124c58040777ddd84bca68490255664a02f0a626d9e76aa4a3949980 0006-Enable-Wformat-and-Wformat-security-by-default.patch +503789bae52d70ddae2cb55ab5046b149f03af95c8341927712d1f7c6c2d25db1fa2ee19f0832d477357162adb276f287c66b702565b684162a2f43b69157d9f 0007-Enable-Wtrampolines-by-default.patch +1488ae4f29e3d9416430e1a10e9201d4c1cad10515ff0921756e98b6be4ec5aa8adbd94d7e5fe4dab446bdf495183fbd6d04cd53a69e5d7f2d1963eeb739daf7 0008-Disable-ssp-on-nostdlib-nodefaultlibs-and-ffreestand.patch +6785152ee7d25ccfdb5bb14ccb08e9fa21433f3f9567b12c7174ec77c37d2437737bde60d8b4be41927eaf40efe46d24348e95ccde78428877f296f33642ab49 0009-Ensure-that-msgfmt-doesn-t-encounter-problems-during.patch +8ca5ef6c9ad56c0314a2230ef6d8d21e0bffdc1289f573991077d6ed1007e30d4cbefe00b0ea72718c09020bb8275178f028ce6763829f7e34255a9b84e5332f 0010-Don-t-declare-asprintf-if-defined-as-a-macro.patch +6909b33e6067c3aef3f6a6975c9c35523d3aa7cb1e8bdaed73804b9afd28890fc868e54f806ac31b134a9c783b2e4774e561f9a7c456c6dba85c17acee1aa84d 0011-libiberty-copy-PIC-objects-during-build-process.patch +2ff9b6828b25ea6ede730954131ccdcbdd7457f0fc32c0ba87dc9a4732a22f9bb87086b1429f7ebd04859ea66b7b3682fc75e8d81e96b2b74e9a6891456f6835 0012-libgcc_s.patch +eb1241be648e0371dd83bed55e1902b7867938cb71fa5ed09b8e1ecfb81ee5da40abc42f2ab515217c8e70234f923fc1b85ec137fd7a58cbfaf357f732cd16f7 0013-nopie.patch +4cd04db2d503d4cc224b08a39b4130056df340ea27c2d2c8b682096516255d4f431af2a9cf8bf1fb946b1499f1157123de666beaef72875ab3e678dde1dddce2 0014-ada-fix-shared-linking.patch +07c159267d0f3fea64f504ce0f995e2e1dab5c96cc00198698ff24392d3cb242915ac373f69f8fc3fbc12bd60fa2c5d5b22bbf01aba938bcb6c9d2541c1701f0 0015-build-fix-CXXFLAGS_FOR_BUILD-passing.patch +548c7e0f7795405f46c9177638c6c20dca1d3de850a8e238ac2278887924be080d243135d246e7c15c0eb0c82b6d58cec5afbcba26da45c294a3e3de54b12e9b 0016-add-fortify-headers-paths.patch +3e50bec315f257f57e5fdc830a91a813451348f4ed2b7d43d628544592d684e0971e2b00b614f46d0b5902fa530f13db7c86bedc180da6a700a96f1e4be2ad88 0017-Alpine-musl-package-provides-libssp_nonshared.a.-We-.patch +c777cf9ed9e0a9d91b5539a12375679f37b101e35aae6a70d113074138f4eb47afeae454206d47f5a8d6e5d437640a754839cc67cfa81a3269cc4ee4fefa8a6b 0018-DP-Use-push-state-pop-state-for-gold-as-well-when-li.patch +5b3e6875725b0a63666af7709e55154774045f1e03ef7e8620cf3cf9d50bfd852259b26e8f072613e02b106c0a09834f6223f21084362ff6a7697ba874ab1a14 0019-aarch64-disable-multilib-support.patch +bc7790e9012985d8f2147476d57f580e966b83323b596914575518d80db51c27bd7080116ff6aef91fcf0de6712f4710a32f1c272c7fc927f0f8a4ee90fc547b 0020-s390x-disable-multilib-support.patch +4284db01201fa1e9cebda4098b61b0c9c0319f86e0870e26e991df4b902cef6381b032f4ba83ba4e6b2537b2e14bf6e1069bba8a55054d70421769fbca3a5d80 0021-ppc64-le-disable-multilib-support.patch +a151bd420781dae743c3406657d111a226e3170b258d7a0ce32c7c959c8702d504249222071e329c24dc74ebdcd9fafd36cb5a15d153714c6fc52e9b399353cb 0022-x86_64-disable-multilib-support.patch +59a32ab970d83a7be15e75be73dcbf760df1a16768568ab8bfdb7519b97b53096cb9f9db5fbefe01c23957bb5f84f89eb44df3bd09ec168ab0dfb49036246b04 0023-riscv-disable-multilib-support.patch +e083d4fdfdc22d318d8cb75c7b7ec9b1426cb0a4b66c35766a0c59aab0151a69cc40a58041ef7b2475e6c6c7d7130fbe8898f04b28008cec36076ed9b74f8b3e 0024-always-build-libgcc_eh.a.patch +c3c3f80d48d79a8ea182d6b193cbc9334a04f8620bf53f44c7a1016a184c0113754d25c8ab912fae7c985147454f3c3dcaea05de05f9232bfa44b377a7740ebb 0025-ada-libgnarl-compatibility-for-musl.patch +8f7392f6339488916b94ef5bae8e13991462b8ea4ce8317eb7b70eac59785b0a68fae26fee5b819e2889a365e512693a650f33c59848537568798b859884ad17 0026-ada-musl-support-fixes.patch +8198c2761551912e286d4cbe8d9f3feadc63cba1cb03f9fec739b8127643714b559fbaa8d16f6f9605836cc660dbdd10d4d2cdf322418a9b135a03b79577e58e 0027-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch +65410e7eb0e9cfb202570365cac76ba951ec52332a02d16bfece10e4f90ea1c2feccc0aee8d3b57ec36c3d83dc3e48b80c077458106dc031fc4b9a9fe7386466 0028-configure-fix-detection-of-atomic-builtins-in-libato.patch +023b3f79edd904a2fdafa903288626467aba43777ab40b53875fc3fb126a64af24b772ae06266afe93aa09f594c494b6e2c3b4d94eb9da724bb130978242a07c 0029-libstdc-do-not-throw-exceptions-for-non-C-locales-on.patch +f37af328cf6562aaed7d3c8a62f4cc9bcd7b858d862e6a7cd9e6f5d8710578cf77c78bfe153b7a736cc1881b5534cd98f99065f821ae961e64840d360966c669 0030-gdc-unconditionally-link-libgphobos-against-libucont.patch +8f5fd0aa921c3fb34bc268a76dea34f6db0dcf120b9c72dce8e691e880fc404f6881d73d0ea20620703da8720fff769215df3bbb679fd32eff78a27fc40a3366 0031-druntime-link-against-libucontext-on-all-platforms.patch +00f1d6434bd8bc2baaad58f3d739e771fd2738af7c86f0ea1a99a70b71153b78d586b3e098cc7a5cdd06b515d70e32acb2b239a0bb3b96078af7a0e52be9d6aa 0032-libgnat-time_t-is-always-64-bit-on-musl-libc.patch +5ee4a721f27908c9f9352f7f0de46f36d6464548b9524c7f45ca92c159966481782182022f2270ef690a1828270bbb9879111cc62b080e5314a235aa83d409e3 0033-libphobos-do-not-use-LFS64-symbols.patch " diff --git a/cross/gcc-riscv64/0001-posix_memalign.patch b/cross/gcc-riscv64/0001-posix_memalign.patch index 469693531..96fe91015 100644 --- a/cross/gcc-riscv64/0001-posix_memalign.patch +++ b/cross/gcc-riscv64/0001-posix_memalign.patch @@ -1,7 +1,7 @@ -From 5238749680d22a42e90dc3832ef1ad1c9a5f1c20 Mon Sep 17 00:00:00 2001 +From 3e5acbe356124aa5d8dde0635d652c065a553e7d Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Fri, 26 Jan 2018 20:32:50 +0000 -Subject: [PATCH 01/32] posix_memalign +Subject: [PATCH 01/33] posix_memalign --- gcc/config/i386/pmm_malloc.h | 9 +++++---- diff --git a/cross/gcc-riscv64/0002-gcc-poison-system-directories.patch b/cross/gcc-riscv64/0002-gcc-poison-system-directories.patch index 21ac0ed95..680fc5572 100644 --- a/cross/gcc-riscv64/0002-gcc-poison-system-directories.patch +++ b/cross/gcc-riscv64/0002-gcc-poison-system-directories.patch @@ -1,7 +1,7 @@ -From dc71cb9815d25a57430ef5d8e2a87312d8c3b467 Mon Sep 17 00:00:00 2001 +From f986a4a1224fa7d452b415d690aead8d356a7eae Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Fri, 29 Mar 2013 08:59:00 +0400 -Subject: [PATCH 02/32] gcc: poison-system-directories +Subject: [PATCH 02/33] gcc: poison-system-directories Add /sw/include and /opt/include based on the original zecke-no-host-includes.patch patch. The original patch checked for diff --git a/cross/gcc-riscv64/0003-specs-turn-on-Wl-z-now-by-default.patch b/cross/gcc-riscv64/0003-specs-turn-on-Wl-z-now-by-default.patch index 37e478aa3..f78ff8bb1 100644 --- a/cross/gcc-riscv64/0003-specs-turn-on-Wl-z-now-by-default.patch +++ b/cross/gcc-riscv64/0003-specs-turn-on-Wl-z-now-by-default.patch @@ -1,7 +1,7 @@ -From 95cd372c839d347b41e22605d569cca6a2119b85 Mon Sep 17 00:00:00 2001 +From 31e2b60000e779ef775daa306120eabcf987852a Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:45:49 +0000 -Subject: [PATCH 03/32] specs: turn on -Wl,-z,now by default +Subject: [PATCH 03/33] specs: turn on -Wl,-z,now by default Previously, we also used to turn on -z relro here, but we now build binutils with --enable-relro, which is functionally equivalent. diff --git a/cross/gcc-riscv64/0004-Turn-on-D_FORTIFY_SOURCE-2-by-default-for-C-C-ObjC-O.patch b/cross/gcc-riscv64/0004-Turn-on-D_FORTIFY_SOURCE-2-by-default-for-C-C-ObjC-O.patch index ce27b18db..4efa91b31 100644 --- a/cross/gcc-riscv64/0004-Turn-on-D_FORTIFY_SOURCE-2-by-default-for-C-C-ObjC-O.patch +++ b/cross/gcc-riscv64/0004-Turn-on-D_FORTIFY_SOURCE-2-by-default-for-C-C-ObjC-O.patch @@ -1,7 +1,7 @@ -From 12b0a32aa19334c1b5dd20c9cc3b0ca885e973ce Mon Sep 17 00:00:00 2001 +From 3b910da7d1e81bdd953e6d9ec82020e7b120353b Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:46:22 +0000 -Subject: [PATCH 04/32] Turn on -D_FORTIFY_SOURCE=2 by default for C, C++, +Subject: [PATCH 04/33] Turn on -D_FORTIFY_SOURCE=2 by default for C, C++, ObjC, ObjC++, if the optimization level is > 0 --- diff --git a/cross/gcc-riscv64/0005-On-linux-targets-pass-as-needed-by-default-to-the-li.patch b/cross/gcc-riscv64/0005-On-linux-targets-pass-as-needed-by-default-to-the-li.patch index 8a54c607a..fa6936d39 100644 --- a/cross/gcc-riscv64/0005-On-linux-targets-pass-as-needed-by-default-to-the-li.patch +++ b/cross/gcc-riscv64/0005-On-linux-targets-pass-as-needed-by-default-to-the-li.patch @@ -1,7 +1,7 @@ -From 8693307d930c085828c921023219d4c1459a32e9 Mon Sep 17 00:00:00 2001 +From 9c3a2882b1932296ccb1d0ed2900cf046f998a26 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:46:56 +0000 -Subject: [PATCH 05/32] On linux targets pass --as-needed by default to the +Subject: [PATCH 05/33] On linux targets pass --as-needed by default to the linker, but always link the sanitizer libraries with --no-as-needed. --- diff --git a/cross/gcc-riscv64/0006-Enable-Wformat-and-Wformat-security-by-default.patch b/cross/gcc-riscv64/0006-Enable-Wformat-and-Wformat-security-by-default.patch index 1743495cc..3476e31db 100644 --- a/cross/gcc-riscv64/0006-Enable-Wformat-and-Wformat-security-by-default.patch +++ b/cross/gcc-riscv64/0006-Enable-Wformat-and-Wformat-security-by-default.patch @@ -1,7 +1,7 @@ -From ec4e37d755110ffb5a4bdba54db89ea06ff3926a Mon Sep 17 00:00:00 2001 +From 288cb2be3abe07dcf2737ed3ac07e93573262bc4 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:47:43 +0000 -Subject: [PATCH 06/32] Enable -Wformat and -Wformat-security by default. +Subject: [PATCH 06/33] Enable -Wformat and -Wformat-security by default. --- gcc/c-family/c.opt | 4 ++-- diff --git a/cross/gcc-riscv64/0007-Enable-Wtrampolines-by-default.patch b/cross/gcc-riscv64/0007-Enable-Wtrampolines-by-default.patch index 87532e376..05442fa64 100644 --- a/cross/gcc-riscv64/0007-Enable-Wtrampolines-by-default.patch +++ b/cross/gcc-riscv64/0007-Enable-Wtrampolines-by-default.patch @@ -1,7 +1,7 @@ -From fdc4c95806cb57e98785c991c6ae9d9f2183a914 Mon Sep 17 00:00:00 2001 +From 93e44f7c7b1f11c1f714d6c384b0d39a191ac18a Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:48:24 +0000 -Subject: [PATCH 07/32] Enable -Wtrampolines by default. +Subject: [PATCH 07/33] Enable -Wtrampolines by default. --- gcc/common.opt | 2 +- diff --git a/cross/gcc-riscv64/0008-Disable-ssp-on-nostdlib-nodefaultlibs-and-ffreestand.patch b/cross/gcc-riscv64/0008-Disable-ssp-on-nostdlib-nodefaultlibs-and-ffreestand.patch index 8e036c843..f76353ed8 100644 --- a/cross/gcc-riscv64/0008-Disable-ssp-on-nostdlib-nodefaultlibs-and-ffreestand.patch +++ b/cross/gcc-riscv64/0008-Disable-ssp-on-nostdlib-nodefaultlibs-and-ffreestand.patch @@ -1,7 +1,7 @@ -From 547ed1d35f0fa8c04cefb8708c4a148f86ed3397 Mon Sep 17 00:00:00 2001 +From 7aa93d6d9a63c7bedf1e033f6d040e95038537e7 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:49:40 +0000 -Subject: [PATCH 08/32] Disable ssp on -nostdlib, -nodefaultlibs and +Subject: [PATCH 08/33] Disable ssp on -nostdlib, -nodefaultlibs and -ffreestanding Change the buffer size. --- diff --git a/cross/gcc-riscv64/0009-Ensure-that-msgfmt-doesn-t-encounter-problems-during.patch b/cross/gcc-riscv64/0009-Ensure-that-msgfmt-doesn-t-encounter-problems-during.patch index c8ce3908d..ef9c84b0c 100644 --- a/cross/gcc-riscv64/0009-Ensure-that-msgfmt-doesn-t-encounter-problems-during.patch +++ b/cross/gcc-riscv64/0009-Ensure-that-msgfmt-doesn-t-encounter-problems-during.patch @@ -1,7 +1,7 @@ -From ee2e986e85a0400402f006ec2ddf2435cac621ba Mon Sep 17 00:00:00 2001 +From e44b295b5b0b917c0b47085f60466a37f890e1c7 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:50:33 +0000 -Subject: [PATCH 09/32] Ensure that msgfmt doesn't encounter problems during +Subject: [PATCH 09/33] Ensure that msgfmt doesn't encounter problems during gcc bootstrapping. Solves error messages like the following: diff --git a/cross/gcc-riscv64/0010-Don-t-declare-asprintf-if-defined-as-a-macro.patch b/cross/gcc-riscv64/0010-Don-t-declare-asprintf-if-defined-as-a-macro.patch index 4e2992549..16a7279a0 100644 --- a/cross/gcc-riscv64/0010-Don-t-declare-asprintf-if-defined-as-a-macro.patch +++ b/cross/gcc-riscv64/0010-Don-t-declare-asprintf-if-defined-as-a-macro.patch @@ -1,7 +1,7 @@ -From 2ed284234b08b5018fb542c784e6b8757b1e4967 Mon Sep 17 00:00:00 2001 +From f041dcd8f775e03b85a49e3aeef0870e2333b10e Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:52:07 +0000 -Subject: [PATCH 10/32] Don't declare asprintf if defined as a macro. +Subject: [PATCH 10/33] Don't declare asprintf if defined as a macro. --- include/libiberty.h | 3 +++ diff --git a/cross/gcc-riscv64/0011-libiberty-copy-PIC-objects-during-build-process.patch b/cross/gcc-riscv64/0011-libiberty-copy-PIC-objects-during-build-process.patch index fecb28d30..5d6009522 100644 --- a/cross/gcc-riscv64/0011-libiberty-copy-PIC-objects-during-build-process.patch +++ b/cross/gcc-riscv64/0011-libiberty-copy-PIC-objects-during-build-process.patch @@ -1,7 +1,7 @@ -From 52544d0abdcf63f33446f880fcaae1d0aa589a81 Mon Sep 17 00:00:00 2001 +From 6fc13fce114648b1a64e658b469a4697382d18bb Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:53:00 +0000 -Subject: [PATCH 11/32] libiberty: copy PIC objects during build process +Subject: [PATCH 11/33] libiberty: copy PIC objects during build process --- libiberty/Makefile.in | 1 + diff --git a/cross/gcc-riscv64/0012-libgcc_s.patch b/cross/gcc-riscv64/0012-libgcc_s.patch index 6723faf13..354f594b2 100644 --- a/cross/gcc-riscv64/0012-libgcc_s.patch +++ b/cross/gcc-riscv64/0012-libgcc_s.patch @@ -1,7 +1,7 @@ -From eff4677a5511567ab3d550a5989ee0805fc3e1a7 Mon Sep 17 00:00:00 2001 +From 6a1955bbf49836ad99b23501f42283842e01761b Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Sat, 24 Oct 2015 20:09:53 +0000 -Subject: [PATCH 12/32] libgcc_s +Subject: [PATCH 12/33] libgcc_s --- gcc/config/i386/i386-expand.cc | 4 ++-- diff --git a/cross/gcc-riscv64/0013-nopie.patch b/cross/gcc-riscv64/0013-nopie.patch index db80a043d..c73cd12bb 100644 --- a/cross/gcc-riscv64/0013-nopie.patch +++ b/cross/gcc-riscv64/0013-nopie.patch @@ -1,7 +1,7 @@ -From 8af4ddcecc9dc43d714798d255a21e12985721b9 Mon Sep 17 00:00:00 2001 +From 558e95aa2b0f3bbf416e1bb572e5f47bddc8601c Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Sat, 7 Nov 2015 02:08:05 +0000 -Subject: [PATCH 13/32] nopie +Subject: [PATCH 13/33] nopie --- gcc/configure | 27 +++++++++++++++++++++++++++ diff --git a/cross/gcc-riscv64/0014-ada-fix-shared-linking.patch b/cross/gcc-riscv64/0014-ada-fix-shared-linking.patch index 46c1814e6..b31f91b67 100644 --- a/cross/gcc-riscv64/0014-ada-fix-shared-linking.patch +++ b/cross/gcc-riscv64/0014-ada-fix-shared-linking.patch @@ -1,7 +1,7 @@ -From 1330c37f63c0388480cfa369df2b437e9c8cc878 Mon Sep 17 00:00:00 2001 +From ecad19db42776c536bd4f6033ec1891ffae03720 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:59:16 +0000 -Subject: [PATCH 14/32] ada: fix shared linking +Subject: [PATCH 14/33] ada: fix shared linking --- gcc/ada/link.c | 12 ++++++------ diff --git a/cross/gcc-riscv64/0015-build-fix-CXXFLAGS_FOR_BUILD-passing.patch b/cross/gcc-riscv64/0015-build-fix-CXXFLAGS_FOR_BUILD-passing.patch index 951158940..3aca83c4b 100644 --- a/cross/gcc-riscv64/0015-build-fix-CXXFLAGS_FOR_BUILD-passing.patch +++ b/cross/gcc-riscv64/0015-build-fix-CXXFLAGS_FOR_BUILD-passing.patch @@ -1,7 +1,7 @@ -From ceb43810c502b238cb487af6e84b1c80f2105f1a Mon Sep 17 00:00:00 2001 +From 8500b4cdd039c16a02a8acabd124b92865871979 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 06:59:43 +0000 -Subject: [PATCH 15/32] build: fix CXXFLAGS_FOR_BUILD passing +Subject: [PATCH 15/33] build: fix CXXFLAGS_FOR_BUILD passing --- Makefile.in | 1 + diff --git a/cross/gcc-riscv64/0016-add-fortify-headers-paths.patch b/cross/gcc-riscv64/0016-add-fortify-headers-paths.patch index 8e8a0b74e..dfdfa414d 100644 --- a/cross/gcc-riscv64/0016-add-fortify-headers-paths.patch +++ b/cross/gcc-riscv64/0016-add-fortify-headers-paths.patch @@ -1,7 +1,7 @@ -From ebc8167db85bc37a59f02fec6904829652989564 Mon Sep 17 00:00:00 2001 +From e893ad827215a7c090a835e20a81559f4044fb47 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 07:01:06 +0000 -Subject: [PATCH 16/32] add fortify-headers paths +Subject: [PATCH 16/33] add fortify-headers paths --- gcc/config/linux.h | 2 ++ diff --git a/cross/gcc-riscv64/0017-Alpine-musl-package-provides-libssp_nonshared.a.-We-.patch b/cross/gcc-riscv64/0017-Alpine-musl-package-provides-libssp_nonshared.a.-We-.patch index e3c8a07b8..656c69142 100644 --- a/cross/gcc-riscv64/0017-Alpine-musl-package-provides-libssp_nonshared.a.-We-.patch +++ b/cross/gcc-riscv64/0017-Alpine-musl-package-provides-libssp_nonshared.a.-We-.patch @@ -1,7 +1,7 @@ -From 86a566d0ed9da32b5f3a6ac48999ebbac6dce4a5 Mon Sep 17 00:00:00 2001 +From 064afc74f18f2a00771fc2600029a713b8708845 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20Ter=C3=A4s?= Date: Fri, 21 Aug 2020 07:03:00 +0000 -Subject: [PATCH 17/32] Alpine musl package provides libssp_nonshared.a. We +Subject: [PATCH 17/33] Alpine musl package provides libssp_nonshared.a. We link to it unconditionally, as otherwise we get link failures if some objects are -fstack-protector built and final link happens with -fno-stack-protector. This seems to be the common case when bootstrapping gcc, the piepatches do diff --git a/cross/gcc-riscv64/0018-DP-Use-push-state-pop-state-for-gold-as-well-when-li.patch b/cross/gcc-riscv64/0018-DP-Use-push-state-pop-state-for-gold-as-well-when-li.patch index 2a2b90fca..001db4857 100644 --- a/cross/gcc-riscv64/0018-DP-Use-push-state-pop-state-for-gold-as-well-when-li.patch +++ b/cross/gcc-riscv64/0018-DP-Use-push-state-pop-state-for-gold-as-well-when-li.patch @@ -1,7 +1,7 @@ -From d113a7974d55a8c5e71f0d72202db3e303245d2b Mon Sep 17 00:00:00 2001 +From 45a98ce1f1702424aba4271f7f7570e43a354101 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 07:03:42 +0000 -Subject: [PATCH 18/32] DP: Use --push-state/--pop-state for gold as well when +Subject: [PATCH 18/33] DP: Use --push-state/--pop-state for gold as well when linking libtsan. --- diff --git a/cross/gcc-riscv64/0019-aarch64-disable-multilib-support.patch b/cross/gcc-riscv64/0019-aarch64-disable-multilib-support.patch index 100736769..19a1afabf 100644 --- a/cross/gcc-riscv64/0019-aarch64-disable-multilib-support.patch +++ b/cross/gcc-riscv64/0019-aarch64-disable-multilib-support.patch @@ -1,7 +1,7 @@ -From 3ba91105e2299d591d817164e2c98b905460892d Mon Sep 17 00:00:00 2001 +From 6a2e902dc8abcfd44522b9224fd759d038db51f5 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Thu, 6 Jan 2022 03:12:55 +0000 -Subject: [PATCH 19/32] aarch64: disable multilib support +Subject: [PATCH 19/33] aarch64: disable multilib support multilib is unsupported on Alpine GCC --- diff --git a/cross/gcc-riscv64/0020-s390x-disable-multilib-support.patch b/cross/gcc-riscv64/0020-s390x-disable-multilib-support.patch index 897c28bc3..2817a092e 100644 --- a/cross/gcc-riscv64/0020-s390x-disable-multilib-support.patch +++ b/cross/gcc-riscv64/0020-s390x-disable-multilib-support.patch @@ -1,7 +1,7 @@ -From ac6348347f14ba8274655aa6af27ccfbf89a437f Mon Sep 17 00:00:00 2001 +From 6e7c72ee05353a284d9c9809035e7ff488b4b8c1 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Thu, 6 Jan 2022 03:13:59 +0000 -Subject: [PATCH 20/32] s390x: disable multilib support +Subject: [PATCH 20/33] s390x: disable multilib support multilib is not supported on Alpine GCC at present --- diff --git a/cross/gcc-riscv64/0021-ppc64-le-disable-multilib-support.patch b/cross/gcc-riscv64/0021-ppc64-le-disable-multilib-support.patch index 7de6bf95d..2dc2bbc36 100644 --- a/cross/gcc-riscv64/0021-ppc64-le-disable-multilib-support.patch +++ b/cross/gcc-riscv64/0021-ppc64-le-disable-multilib-support.patch @@ -1,7 +1,7 @@ -From 969630b9b930860077fcc9b08972d18b40518828 Mon Sep 17 00:00:00 2001 +From 44655aa3be8d5354fb82a42317a9ac6ac1b50164 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Thu, 6 Jan 2022 03:14:33 +0000 -Subject: [PATCH 21/32] ppc64[le]: disable multilib support +Subject: [PATCH 21/33] ppc64[le]: disable multilib support multilib is not presently supported on Alpine GCC --- diff --git a/cross/gcc-riscv64/0022-x86_64-disable-multilib-support.patch b/cross/gcc-riscv64/0022-x86_64-disable-multilib-support.patch index 566951533..d69ec3167 100644 --- a/cross/gcc-riscv64/0022-x86_64-disable-multilib-support.patch +++ b/cross/gcc-riscv64/0022-x86_64-disable-multilib-support.patch @@ -1,7 +1,7 @@ -From a34c8e7255f71228e4bef4d51fbb791a10013658 Mon Sep 17 00:00:00 2001 +From 5f79236c49bd0c2c36440f0ef83cea02d52fcaaf Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Thu, 6 Jan 2022 03:14:54 +0000 -Subject: [PATCH 22/32] x86_64: disable multilib support +Subject: [PATCH 22/33] x86_64: disable multilib support multilib is not presently supported on Alpine GCC --- diff --git a/cross/gcc-riscv64/0023-riscv-disable-multilib-support.patch b/cross/gcc-riscv64/0023-riscv-disable-multilib-support.patch index f81c30a61..7b5c9a56d 100644 --- a/cross/gcc-riscv64/0023-riscv-disable-multilib-support.patch +++ b/cross/gcc-riscv64/0023-riscv-disable-multilib-support.patch @@ -1,7 +1,7 @@ -From abf619dfadb883809457037a52d5eb77acf25dd5 Mon Sep 17 00:00:00 2001 +From 4605e64b3a076411f2f8134256c400eb58bcc1c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Tempel?= Date: Mon, 3 Jan 2022 07:14:48 +0100 -Subject: [PATCH 23/32] riscv: disable multilib support +Subject: [PATCH 23/33] riscv: disable multilib support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit diff --git a/cross/gcc-riscv64/0024-always-build-libgcc_eh.a.patch b/cross/gcc-riscv64/0024-always-build-libgcc_eh.a.patch index 454279070..b1ab2e715 100644 --- a/cross/gcc-riscv64/0024-always-build-libgcc_eh.a.patch +++ b/cross/gcc-riscv64/0024-always-build-libgcc_eh.a.patch @@ -1,7 +1,7 @@ -From fc731db4cee01c38c1454e55ec51cb78d6713188 Mon Sep 17 00:00:00 2001 +From a178cfeb975d79bb9b9fd877ab4c6e05d10b147e Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 07:05:41 +0000 -Subject: [PATCH 24/32] always build libgcc_eh.a +Subject: [PATCH 24/33] always build libgcc_eh.a highly inspired by: http://landley.net/hg/aboriginal/file/7e0747a665ab/sources/patches/gcc-core-libgcceh.patch diff --git a/cross/gcc-riscv64/0025-ada-libgnarl-compatibility-for-musl.patch b/cross/gcc-riscv64/0025-ada-libgnarl-compatibility-for-musl.patch index 1cc9c1bd3..39d77413f 100644 --- a/cross/gcc-riscv64/0025-ada-libgnarl-compatibility-for-musl.patch +++ b/cross/gcc-riscv64/0025-ada-libgnarl-compatibility-for-musl.patch @@ -1,7 +1,7 @@ -From e3271b1970ecb6dab612333ec93c8bd2107cc598 Mon Sep 17 00:00:00 2001 +From 5bc3deb9bc2679ad4f6f189a65e3643b550587a1 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 07:06:30 +0000 -Subject: [PATCH 25/32] ada: libgnarl compatibility for musl +Subject: [PATCH 25/33] ada: libgnarl compatibility for musl --- gcc/ada/libgnarl/s-osinte__linux.ads | 11 ------ diff --git a/cross/gcc-riscv64/0026-ada-musl-support-fixes.patch b/cross/gcc-riscv64/0026-ada-musl-support-fixes.patch index 8b52c83e8..c36ff6237 100644 --- a/cross/gcc-riscv64/0026-ada-musl-support-fixes.patch +++ b/cross/gcc-riscv64/0026-ada-musl-support-fixes.patch @@ -1,7 +1,7 @@ -From fdfa9e6dfcc384bce6e525a9ce3a280b808b8312 Mon Sep 17 00:00:00 2001 +From e1e6dccc9124e0907c5ae174d20acb3bad87e633 Mon Sep 17 00:00:00 2001 From: Ariadne Conill Date: Fri, 21 Aug 2020 07:07:48 +0000 -Subject: [PATCH 26/32] ada: musl support fixes +Subject: [PATCH 26/33] ada: musl support fixes --- gcc/ada/Makefile.rtl | 10 +++++----- diff --git a/cross/gcc-riscv64/0027-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch b/cross/gcc-riscv64/0027-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch index c1a7521b5..febd64005 100644 --- a/cross/gcc-riscv64/0027-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch +++ b/cross/gcc-riscv64/0027-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch @@ -1,7 +1,7 @@ -From 4a8793a2233c4bd91cd33958fff1420c4bf19333 Mon Sep 17 00:00:00 2001 +From 9506e729f0e4f66f4018fbfc5340a568e8520264 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Wed, 9 Dec 2020 07:42:06 +0000 -Subject: [PATCH 27/32] configure: Add --enable-autolink-libatomic, use in +Subject: [PATCH 27/33] configure: Add --enable-autolink-libatomic, use in LINK_GCC_C_SEQUENCE_SPEC [PR81358] This fixes issues with RISC-V. diff --git a/cross/gcc-riscv64/0028-configure-fix-detection-of-atomic-builtins-in-libato.patch b/cross/gcc-riscv64/0028-configure-fix-detection-of-atomic-builtins-in-libato.patch index b2959c347..939f76b7b 100644 --- a/cross/gcc-riscv64/0028-configure-fix-detection-of-atomic-builtins-in-libato.patch +++ b/cross/gcc-riscv64/0028-configure-fix-detection-of-atomic-builtins-in-libato.patch @@ -1,7 +1,7 @@ -From c9b40cfd31fd166e7481480218c074ba6b1214cb Mon Sep 17 00:00:00 2001 +From 966da83d0d75482a1489804593ae61f3f8e3b385 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Tempel?= Date: Sun, 29 Aug 2021 12:23:34 +0200 -Subject: [PATCH 28/32] configure: fix detection of atomic builtins in +Subject: [PATCH 28/33] configure: fix detection of atomic builtins in libatomic configure script Alpine's --enable-autolink-libatomic (which is enabled for riscv64 by diff --git a/cross/gcc-riscv64/0029-libstdc-do-not-throw-exceptions-for-non-C-locales-on.patch b/cross/gcc-riscv64/0029-libstdc-do-not-throw-exceptions-for-non-C-locales-on.patch index 3d47c6531..4d13cd6e6 100644 --- a/cross/gcc-riscv64/0029-libstdc-do-not-throw-exceptions-for-non-C-locales-on.patch +++ b/cross/gcc-riscv64/0029-libstdc-do-not-throw-exceptions-for-non-C-locales-on.patch @@ -1,7 +1,7 @@ -From e2b9546b31d33f7d13ba675171025cf30ae2e21e Mon Sep 17 00:00:00 2001 +From e74f4b3a10d96f06b15df9d9b61d5b10a84ec084 Mon Sep 17 00:00:00 2001 From: Samuel Holland Date: Thu, 30 Jun 2022 16:44:51 +0000 -Subject: [PATCH 29/32] libstdc++: do not throw exceptions for non-C locales on +Subject: [PATCH 29/33] libstdc++: do not throw exceptions for non-C locales on musl targets --- diff --git a/cross/gcc-riscv64/0030-gdc-unconditionally-link-libgphobos-against-libucont.patch b/cross/gcc-riscv64/0030-gdc-unconditionally-link-libgphobos-against-libucont.patch index d5fc03179..83f1eb06f 100644 --- a/cross/gcc-riscv64/0030-gdc-unconditionally-link-libgphobos-against-libucont.patch +++ b/cross/gcc-riscv64/0030-gdc-unconditionally-link-libgphobos-against-libucont.patch @@ -1,7 +1,7 @@ -From f036f4b4dc5476429e5485cdc5cc15c29da4d7e1 Mon Sep 17 00:00:00 2001 +From bdc2699f0284e59842e5d3a39fc426550b4ba0e8 Mon Sep 17 00:00:00 2001 From: Mathias LANG Date: Mon, 17 Jan 2022 03:49:21 +0000 -Subject: [PATCH 30/32] gdc: unconditionally link libgphobos against +Subject: [PATCH 30/33] gdc: unconditionally link libgphobos against libucontext ref: alpine/aports#13422 diff --git a/cross/gcc-riscv64/0031-druntime-link-against-libucontext-on-all-platforms.patch b/cross/gcc-riscv64/0031-druntime-link-against-libucontext-on-all-platforms.patch index e07474deb..be9959ccf 100644 --- a/cross/gcc-riscv64/0031-druntime-link-against-libucontext-on-all-platforms.patch +++ b/cross/gcc-riscv64/0031-druntime-link-against-libucontext-on-all-platforms.patch @@ -1,7 +1,7 @@ -From 3b27d7eebc87675a377a68b8bb67bdd3399de67f Mon Sep 17 00:00:00 2001 +From 82780d18bfcb7dabc215d4b89b1187cb253e15f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Tempel?= Date: Sat, 16 Jul 2022 09:21:11 +0200 -Subject: [PATCH 31/32] druntime: link against libucontext on all platforms +Subject: [PATCH 31/33] druntime: link against libucontext on all platforms On musl-based Linux distributions, swapcontext etc. are not provided by musl but instead by libucontext. Hence, we _always_ need to link against diff --git a/cross/gcc-riscv64/0032-libgnat-time_t-is-always-64-bit-on-musl-libc.patch b/cross/gcc-riscv64/0032-libgnat-time_t-is-always-64-bit-on-musl-libc.patch index bd28ec3b2..4f02e6ce5 100644 --- a/cross/gcc-riscv64/0032-libgnat-time_t-is-always-64-bit-on-musl-libc.patch +++ b/cross/gcc-riscv64/0032-libgnat-time_t-is-always-64-bit-on-musl-libc.patch @@ -1,7 +1,7 @@ -From 5081b2b7526e11a4877548a2348c53798ba3de7b Mon Sep 17 00:00:00 2001 +From 32fc6be0b339983e31f6285dbc565b906ec983d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Tempel?= Date: Tue, 19 Jul 2022 14:54:07 +0200 -Subject: [PATCH 32/32] libgnat: time_t is always 64-bit on musl libc +Subject: [PATCH 32/33] libgnat: time_t is always 64-bit on musl libc --- gcc/ada/libgnat/s-parame.ads | 2 +- diff --git a/cross/gcc-riscv64/0033-libphobos-do-not-use-LFS64-symbols.patch b/cross/gcc-riscv64/0033-libphobos-do-not-use-LFS64-symbols.patch new file mode 100644 index 000000000..6ccd1ae98 --- /dev/null +++ b/cross/gcc-riscv64/0033-libphobos-do-not-use-LFS64-symbols.patch @@ -0,0 +1,30 @@ +From b5e9f810a8a5963104dd1897c3276f60786f9edb Mon Sep 17 00:00:00 2001 +From: psykose +Date: Mon, 29 May 2023 15:33:11 +0000 +Subject: [PATCH 33/33] libphobos: do not use LFS64 symbols + +musl does not have these since 1.2.4, we can't use the compat interfaces. +--- + libphobos/libdruntime/core/sys/posix/sys/mman.d | 6 +----- + 1 file changed, 1 insertion(+), 5 deletions(-) + +diff --git a/libphobos/libdruntime/core/sys/posix/sys/mman.d b/libphobos/libdruntime/core/sys/posix/sys/mman.d +index 0d3d517d69a..323aa0af72d 100644 +--- a/libphobos/libdruntime/core/sys/posix/sys/mman.d ++++ b/libphobos/libdruntime/core/sys/posix/sys/mman.d +@@ -293,11 +293,7 @@ else version (CRuntime_Bionic) + } + else version (CRuntime_Musl) + { +- static if (__USE_LARGEFILE64) void* mmap64(void*, size_t, int, int, int, off_t); +- static if (__USE_FILE_OFFSET64) +- alias mmap = mmap64; +- else +- void* mmap(void*, size_t, int, int, int, off_t); ++ void* mmap(void*, size_t, int, int, int, off_t); + int munmap(void*, size_t); + } + else version (CRuntime_UClibc) +-- +2.40.1 + diff --git a/cross/gcc-riscv64/APKBUILD b/cross/gcc-riscv64/APKBUILD index 289dccba3..08a0d823e 100644 --- a/cross/gcc-riscv64/APKBUILD +++ b/cross/gcc-riscv64/APKBUILD @@ -34,7 +34,7 @@ _pkgsnap="${pkgver##*_git}" [ "$CHOST" != "$CTARGET" ] && _target="-$CTARGET_ARCH" || _target="" pkgname=gcc-riscv64 -pkgrel=0 +pkgrel=1 pkgdesc="Stage2 cross-compiler for riscv64" url="https://gcc.gnu.org" arch="x86_64" @@ -266,6 +266,7 @@ source="https://dev.alpinelinux.org/archive/gcc/${_pkgbase%%.*}-$_pkgsnap/gcc-${ 0030-gdc-unconditionally-link-libgphobos-against-libucont.patch 0031-druntime-link-against-libucontext-on-all-platforms.patch 0032-libgnat-time_t-is-always-64-bit-on-musl-libc.patch + 0033-libphobos-do-not-use-LFS64-symbols.patch " # we build out-of-tree @@ -780,36 +781,37 @@ gdb() { sha512sums=" bcad5977ff9b0fe66df53e985ddcf0be1727860f76025a09c2ea786bd6d4c7f1129776ad2e52912c16824fb5d870188d44a24125db78603d78da75c13d207311 gcc-13-20230527.tar.xz -a39a2485fcffb05757e8a9100985a4c87cc472028ad756e1992747d3e737bd7526d2cc054f7f0e7c24708d2ba9e898eaebf3f2db424a1895daf796e126772e5e 0001-posix_memalign.patch -a7bf2f69dc983c87dcc480b7c03d80d26128c89afbfea7f035694d7076aacf9361d39b734de5353b52e4e448e84aac68812006da42664bae661b66d4f8ea5098 0002-gcc-poison-system-directories.patch -a0d4f99e0b3bc0c653d9e23b91c602d1e1ce22d67731aaf76ee267654fcffdfdfc2982b4e99ef6b5523def4cfd5a96e2a20aa5f9efa5256315e824dac3bab806 0003-specs-turn-on-Wl-z-now-by-default.patch -ae94863ffecb30a40f3fd79f8b31106bbf8a17dbf13c6036847f1ba2726cc96f2a957f4694f3c880c06ee1dc8fbd990e957b9b55b0275e7d8cc7df10286942fa 0004-Turn-on-D_FORTIFY_SOURCE-2-by-default-for-C-C-ObjC-O.patch -2356813aec1ff0a3e82fedfe5dbd0f8c6d442cf567851db40077f98d659b7d048a5349e1ac9c056384a663dad08782d80e29675a457c503200b274a50a6db72d 0005-On-linux-targets-pass-as-needed-by-default-to-the-li.patch -c9ee725e69b20f15029920bc187178fbb1c6f0375f16ea1a1052187e591569618c93b108b0f4c387530d976e5daba607b9b76e5ec14a776799324ce7f7c3b11d 0006-Enable-Wformat-and-Wformat-security-by-default.patch -70fe923321aa50bd4bf9b67d3bb872e03ecd5dd9669e783d7893513c0c86aaca6cac39c7dcc5818bfd4e5ba59f7e2b2e790ac87fcb0dc348c543c15bbb3f7064 0007-Enable-Wtrampolines-by-default.patch -fa3106eb878ea48479f3145c837b4bb3e563edb9e0535b833f5d7006507af7427902b45c56751c8220eb828e02219e4c54835aa4c0c6eebf797bc29d3d9a7036 0008-Disable-ssp-on-nostdlib-nodefaultlibs-and-ffreestand.patch -8054b3fb3b9e53000fb00229675b6408defac71f38fceff78372e154990540a23b1790cd7b30a61bfd2ae982cc7c9c8c0405398173abd5618e1814d3ccd85ce9 0009-Ensure-that-msgfmt-doesn-t-encounter-problems-during.patch -1591ba8c8e873d3e38da61038df0b0da0594f15dd8659c1a2a3f834d55599fc7adab18713c26bcfe389a023dc12d7e00231c4b6b61f6b23ff602c8360d459115 0010-Don-t-declare-asprintf-if-defined-as-a-macro.patch -4d03d0bcb31e7a9e171ad408514ec4b1f90783891345bfbf65e513798271b1bbca41a7da616a4ae947a6ba1343a0df9b95233fa202eec70e88fec485841f2413 0011-libiberty-copy-PIC-objects-during-build-process.patch -62574f57043a24ebc644dd761aa46334071c6f0e721375a83f36099b2514dcc7df0b2900fcd52dee7754664e3f59f7686d8b39bf9df5c61893206f34f485cb49 0012-libgcc_s.patch -342782bdaaed8107758345fddb01be3df9e880af235f40c598d46a35c9b1499b7ca10d968f381af168886500aca5a155175d1576f1c30a00555da7467b9d1ccc 0013-nopie.patch -e65bae2cce0e17586384b100ef3dbde232d9f7809cfd40dedb466a24ff2d87b92d68b1a02fe29ec958561bad49658c6a474eae32dd2ee151715808cb5bbfd1a9 0014-ada-fix-shared-linking.patch -d23962505d7bfa99180edfe727df80e4b5d101697537d818327d9e836e90305b16de95729c70268150b55268d01ad5f1d92b70a0a056884f70abf5c4d5870e27 0015-build-fix-CXXFLAGS_FOR_BUILD-passing.patch -a4621dca1edb35e2648a348240bd6790e49b9db1fe7b9f81777222d4b1b241b3ee56a4fca9a02964a00ccc4bd291e37d5911fd142d55002424cd9b9e39f7f98f 0016-add-fortify-headers-paths.patch -3ab96307b31a45e40e174986d13bba620f91954738d84f02ed024854a2cabebf5e6e62589c7006097eb4fb76d5ec526589a877cb8c01f90e5b24819fb191c182 0017-Alpine-musl-package-provides-libssp_nonshared.a.-We-.patch -da8b091796740d315f2e23cc63820f1f5ed242f5ce04acf1603fa308b6f3e09088b6976a984180ff54cefdfa4b279706e1ef5df675c0644028fbf3c948ee6e37 0018-DP-Use-push-state-pop-state-for-gold-as-well-when-li.patch -39fec69162c86160ee24030c9f14303dc8aac3341f1a8eabb23d1db58c63a3e7252b5b19172ace6730064a9bf1a848d83882f59b4ada319de46dc99ffbd30c83 0019-aarch64-disable-multilib-support.patch -da2da38d118213567cfbe7c81a8c60deff8e77306b4d5e44d208dfcb6ebc7f29c3964106ebf3dd130edb8a343cc7ecddb3314c14488a429301dbf4750edc65ea 0020-s390x-disable-multilib-support.patch -d74ba03a6da1bcc18e70f017616ab2a1b901e8d04dcb6ea994420aecd042378ec440652ba1168b05a40ddff431ae5b69a19148e928fa70e3e15ba91a03224fad 0021-ppc64-le-disable-multilib-support.patch -828281a2e7404eedfd7a9a90a553ca7e4eab2a19d2a442faa69c3c2ecefe1a3750426bf5fe6d421dedbfba83feddbba04cb6938658d15110b4007813319713c0 0022-x86_64-disable-multilib-support.patch -c7d76f6d987e51e488e404ca75a4c44ed35be6fda925cf0f4cfc9d85e71df6b034d514fdd2748e26d889f8ee30a252224096241348cd06516f2469a3ed6a6a35 0023-riscv-disable-multilib-support.patch -42d9cce946d51d046a96930335915c927d2bb846d6cff685351f58a1006eb5f831b0fd928091df17ed5d4ac1efbbd359b54c325c40e70737d0302d22c8262606 0024-always-build-libgcc_eh.a.patch -c45c449e5304a7483b1141f87a53ab4658402dec8fa5d5116fa7a5e4bebba322da3214cf85c9b25e1c6d040ec81c0094b56a1ed4eefbcde91235816aa0159c6e 0025-ada-libgnarl-compatibility-for-musl.patch -e09ef88df90c4b484ab4172d7ac68c1defd9f1897fadfcb23572e2829e0f795f3eeb1e5ceeb6aac76cab938a0962371e99c168dcf1c2c4c31c8a8b4fa774dc3e 0026-ada-musl-support-fixes.patch -0661fe9d2a61d4de8d9862d6d936bad8236f9ce679b5e40eea7d54b042a7f860f21103e489a8c7a2b12b1e368194ffeb9b4672d7086ebf4189c77f0a27f27a71 0027-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch -68da13272861a0b3f33022350135660af9a060d03529b610dddf540fb77050647934f1a463c681d1556fa0005b6c16fe76cad285667d1349d5be50ccc83c530e 0028-configure-fix-detection-of-atomic-builtins-in-libato.patch -f638c4d7a3fb54d5fd76b7e9b49d8dd1041347409f842453bf862586e2770d595aa9e58f8c1ec45e3c37235d5e74b7327f4610a3cad81c0a757a1271e5a0e572 0029-libstdc-do-not-throw-exceptions-for-non-C-locales-on.patch -f6f2971f4e1bc58c0aeb2a62d9ad551a0fe855b9086f308dce2bb713214415c9679e8e6547290b1514dfd3bc7296d3dfdb7c2964289bbec737984a7810e5ef5d 0030-gdc-unconditionally-link-libgphobos-against-libucont.patch -ab26344341f5e75673e3a95590fb59fde3ee681949c3004e93ef04af9f1fe2d063c22fc21d14882808d3331ce9eeb135a33b87aeed4d3bf74cc9b087ac56610e 0031-druntime-link-against-libucontext-on-all-platforms.patch -5dfdd7645ba5090ac46e025ce3ce629cbf612518654dced2159e0a621d0ef8e231514bad4746aa8863e544077502d4842486b978a0c3857c4ad48b20c49ef2d1 0032-libgnat-time_t-is-always-64-bit-on-musl-libc.patch +af3d297e6e6aa9076fd09d128d72d72cb9c225ee377f3c65cc7647620b956ac463e8f744c808b045102ab7ed131cbaa3d511e121e5c820ac93f29374bb1f4281 0001-posix_memalign.patch +1be15c3740749731e606eed65f99c274fca2072cc8c907f036f44f3f03047af356fd2f1b2b5b8a082dac6f9046998dde400f8acb4046d14702dace7d976ff78f 0002-gcc-poison-system-directories.patch +a43fd3091f7cecba66f6904d4241a3d04b084c6eab820f34d36a445fa57b44b0a65613550544c179e314a3d516c2cbd8f245a3f001a0854b99c7bbac171c5756 0003-specs-turn-on-Wl-z-now-by-default.patch +b8dd907022785d5f3edd5b6575a1343d54a0c84d935e76a35308dcf2cb602a03e8b91fb51431a9be970eb797f0ae8d4f64f93ec97573cc0fdac61c0dba5ab79f 0004-Turn-on-D_FORTIFY_SOURCE-2-by-default-for-C-C-ObjC-O.patch +f93ec8f926a014cd43e70589ce188ca0ef24d216617184bcb81e9c9cbd56aeeede6653489f2d31105c51cab7ea94499db5ec46528ad6e14d33d8e90e2c95dc29 0005-On-linux-targets-pass-as-needed-by-default-to-the-li.patch +966012aa0a9271232d271d548c1029af3567aaf0b1d3d1ef502ad6fa18cb1c6709f8e7f7124c58040777ddd84bca68490255664a02f0a626d9e76aa4a3949980 0006-Enable-Wformat-and-Wformat-security-by-default.patch +503789bae52d70ddae2cb55ab5046b149f03af95c8341927712d1f7c6c2d25db1fa2ee19f0832d477357162adb276f287c66b702565b684162a2f43b69157d9f 0007-Enable-Wtrampolines-by-default.patch +1488ae4f29e3d9416430e1a10e9201d4c1cad10515ff0921756e98b6be4ec5aa8adbd94d7e5fe4dab446bdf495183fbd6d04cd53a69e5d7f2d1963eeb739daf7 0008-Disable-ssp-on-nostdlib-nodefaultlibs-and-ffreestand.patch +6785152ee7d25ccfdb5bb14ccb08e9fa21433f3f9567b12c7174ec77c37d2437737bde60d8b4be41927eaf40efe46d24348e95ccde78428877f296f33642ab49 0009-Ensure-that-msgfmt-doesn-t-encounter-problems-during.patch +8ca5ef6c9ad56c0314a2230ef6d8d21e0bffdc1289f573991077d6ed1007e30d4cbefe00b0ea72718c09020bb8275178f028ce6763829f7e34255a9b84e5332f 0010-Don-t-declare-asprintf-if-defined-as-a-macro.patch +6909b33e6067c3aef3f6a6975c9c35523d3aa7cb1e8bdaed73804b9afd28890fc868e54f806ac31b134a9c783b2e4774e561f9a7c456c6dba85c17acee1aa84d 0011-libiberty-copy-PIC-objects-during-build-process.patch +2ff9b6828b25ea6ede730954131ccdcbdd7457f0fc32c0ba87dc9a4732a22f9bb87086b1429f7ebd04859ea66b7b3682fc75e8d81e96b2b74e9a6891456f6835 0012-libgcc_s.patch +eb1241be648e0371dd83bed55e1902b7867938cb71fa5ed09b8e1ecfb81ee5da40abc42f2ab515217c8e70234f923fc1b85ec137fd7a58cbfaf357f732cd16f7 0013-nopie.patch +4cd04db2d503d4cc224b08a39b4130056df340ea27c2d2c8b682096516255d4f431af2a9cf8bf1fb946b1499f1157123de666beaef72875ab3e678dde1dddce2 0014-ada-fix-shared-linking.patch +07c159267d0f3fea64f504ce0f995e2e1dab5c96cc00198698ff24392d3cb242915ac373f69f8fc3fbc12bd60fa2c5d5b22bbf01aba938bcb6c9d2541c1701f0 0015-build-fix-CXXFLAGS_FOR_BUILD-passing.patch +548c7e0f7795405f46c9177638c6c20dca1d3de850a8e238ac2278887924be080d243135d246e7c15c0eb0c82b6d58cec5afbcba26da45c294a3e3de54b12e9b 0016-add-fortify-headers-paths.patch +3e50bec315f257f57e5fdc830a91a813451348f4ed2b7d43d628544592d684e0971e2b00b614f46d0b5902fa530f13db7c86bedc180da6a700a96f1e4be2ad88 0017-Alpine-musl-package-provides-libssp_nonshared.a.-We-.patch +c777cf9ed9e0a9d91b5539a12375679f37b101e35aae6a70d113074138f4eb47afeae454206d47f5a8d6e5d437640a754839cc67cfa81a3269cc4ee4fefa8a6b 0018-DP-Use-push-state-pop-state-for-gold-as-well-when-li.patch +5b3e6875725b0a63666af7709e55154774045f1e03ef7e8620cf3cf9d50bfd852259b26e8f072613e02b106c0a09834f6223f21084362ff6a7697ba874ab1a14 0019-aarch64-disable-multilib-support.patch +bc7790e9012985d8f2147476d57f580e966b83323b596914575518d80db51c27bd7080116ff6aef91fcf0de6712f4710a32f1c272c7fc927f0f8a4ee90fc547b 0020-s390x-disable-multilib-support.patch +4284db01201fa1e9cebda4098b61b0c9c0319f86e0870e26e991df4b902cef6381b032f4ba83ba4e6b2537b2e14bf6e1069bba8a55054d70421769fbca3a5d80 0021-ppc64-le-disable-multilib-support.patch +a151bd420781dae743c3406657d111a226e3170b258d7a0ce32c7c959c8702d504249222071e329c24dc74ebdcd9fafd36cb5a15d153714c6fc52e9b399353cb 0022-x86_64-disable-multilib-support.patch +59a32ab970d83a7be15e75be73dcbf760df1a16768568ab8bfdb7519b97b53096cb9f9db5fbefe01c23957bb5f84f89eb44df3bd09ec168ab0dfb49036246b04 0023-riscv-disable-multilib-support.patch +e083d4fdfdc22d318d8cb75c7b7ec9b1426cb0a4b66c35766a0c59aab0151a69cc40a58041ef7b2475e6c6c7d7130fbe8898f04b28008cec36076ed9b74f8b3e 0024-always-build-libgcc_eh.a.patch +c3c3f80d48d79a8ea182d6b193cbc9334a04f8620bf53f44c7a1016a184c0113754d25c8ab912fae7c985147454f3c3dcaea05de05f9232bfa44b377a7740ebb 0025-ada-libgnarl-compatibility-for-musl.patch +8f7392f6339488916b94ef5bae8e13991462b8ea4ce8317eb7b70eac59785b0a68fae26fee5b819e2889a365e512693a650f33c59848537568798b859884ad17 0026-ada-musl-support-fixes.patch +8198c2761551912e286d4cbe8d9f3feadc63cba1cb03f9fec739b8127643714b559fbaa8d16f6f9605836cc660dbdd10d4d2cdf322418a9b135a03b79577e58e 0027-configure-Add-enable-autolink-libatomic-use-in-LINK_.patch +65410e7eb0e9cfb202570365cac76ba951ec52332a02d16bfece10e4f90ea1c2feccc0aee8d3b57ec36c3d83dc3e48b80c077458106dc031fc4b9a9fe7386466 0028-configure-fix-detection-of-atomic-builtins-in-libato.patch +023b3f79edd904a2fdafa903288626467aba43777ab40b53875fc3fb126a64af24b772ae06266afe93aa09f594c494b6e2c3b4d94eb9da724bb130978242a07c 0029-libstdc-do-not-throw-exceptions-for-non-C-locales-on.patch +f37af328cf6562aaed7d3c8a62f4cc9bcd7b858d862e6a7cd9e6f5d8710578cf77c78bfe153b7a736cc1881b5534cd98f99065f821ae961e64840d360966c669 0030-gdc-unconditionally-link-libgphobos-against-libucont.patch +8f5fd0aa921c3fb34bc268a76dea34f6db0dcf120b9c72dce8e691e880fc404f6881d73d0ea20620703da8720fff769215df3bbb679fd32eff78a27fc40a3366 0031-druntime-link-against-libucontext-on-all-platforms.patch +00f1d6434bd8bc2baaad58f3d739e771fd2738af7c86f0ea1a99a70b71153b78d586b3e098cc7a5cdd06b515d70e32acb2b239a0bb3b96078af7a0e52be9d6aa 0032-libgnat-time_t-is-always-64-bit-on-musl-libc.patch +5ee4a721f27908c9f9352f7f0de46f36d6464548b9524c7f45ca92c159966481782182022f2270ef690a1828270bbb9879111cc62b080e5314a235aa83d409e3 0033-libphobos-do-not-use-LFS64-symbols.patch "