271 Commits

Author SHA1 Message Date
userdocs
3635262e45 bump default versions for gmp, mpc, and mpfr to latest 2025-07-27 01:34:35 +00:00
userdocs
5208eeb2df add support for latest versions of gmp, isl, mpc, and mpfr 2025-07-27 01:33:44 +00:00
userdocs
5b3b4ea504 add support Linux kernel 6.15.7
added support for tested to work 6.15.7 of the Linux kernel version.
2025-07-27 01:31:12 +00:00
Rich Felker
f5a188a976 drop config.sub replacement
this was only done to fix some missing tuple matches (probably only
sh2eb) on very old gcc and binutils versions. instead of dropping an
arbitrary version of config.sub into every autoconf'd tree, add
patches for the only affected gcc and binutils versions that are
supported.
2025-07-27 01:27:23 +00:00
userdocs
b97b5e7a61 add support config.sub a2287c3041a3
Add hash for tested to work config.sub HEAD with sha a2287c3041a3, at
the time of this pull request.
2025-07-27 01:26:09 +00:00
Rich Felker
4be756d35c update all static pie patches to ensure -static reached the linker
on some targets, the logic for the compiler option -static seems not
to be processed when -pie is present. rather than playing
whack-a-mole, just ensure LD_PIE_SPEC specs always pass -static to ld
if either -static or -static-pie is present on the compiler driver
command line.

this may produce redundant -static arguments but it doesn't matter.
2025-07-21 02:25:06 +00:00
Rich Felker
2398261280 add patches to fix riscv & s390x ld not binding PIE symbols at link time
these should probably be backported to older binutils too, but they
don't apply as-is since the code has been refactored. I don't consider
this a high priority; use of old binutils should probably be treated
as deprecated at some point.
2025-07-21 02:24:15 +00:00
userdocs
baad915870 add support for gcc 15.1.0
This adds the patches from the previously tested gcc version 14.3.0
and they have been tested to successfully apply to 15.1.0 with no
issues.

The corresponding hash has been added.
2025-07-21 00:19:03 +00:00
userdocs
b337fe6d1d add support for gcc 14.3.0
This adds the patches from the previously tested gcc version 14.2.0
and they have been tested to successfully apply to 14.3.0 with no
issues. The libquadmath patch for GCC issue 116007 is not copied over
because it has already been applied upstream.

The corresponding hash has been added.
2025-07-21 00:17:59 +00:00
Rich Felker
a77218fdaa add support for linux 6.x kernel urls as kernel headers source
still needs hashes added to be useful.
2025-07-20 23:42:13 +00:00
Rich Felker
038afb6dbd litecross: add missing arch name remapping for or1k from gcc to kernel
this was overlooked long ago and makes it so kernel headers can't be
built & installed for or1k.
2025-07-20 23:08:17 +00:00
rofl0r
5fea505f63 gcc-11*: fix calloc poison error when built with gcc12 on musl
patch was picked from gcc git by @michaelforney and adapted
for GCC 11, and while it applies cleanly to gcc 11.2.0 and 11.3.0,
further modification was needed for gcc 11.5.0.

refs:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106102
https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=3b21c21f3f5726823e19728fdd1571a14aae0fb3
2025-07-20 23:02:01 +00:00
Rich Felker
14175d4a21 add gcc 14 patch to fix libquadmath build on ppc64
this is the upstream patch for fixing gcc bug 116007. gcc 13 does not
seem to have the bug, and it should already be fixed in gcc 15 when we
add it.
2025-07-20 22:06:10 +00:00
Rich Felker
4a01792295 bump default binutils version to 2.44
this is needed to fix riscv64 builds with newer gcc versions, and
probably fixes other bugs too.
2025-07-20 02:58:42 +00:00
Rich Felker
83b033668e add hash and forward-ported patches for binutils 2.44 2025-07-20 02:55:04 +00:00
rofl0r
6f3701d081 gcc-5.3.0: fix new build error with recent host gcc
newer gccs default to -std=c++17 which no longer allows
operator++ to be used on 'bool's.
this patch changes the type to unsigned char, just like
newer gcc versions have it.
v0.9.11
2025-02-17 19:21:12 -05:00
rofl0r
465ad1b108 gcc-5.3.0: fix cowpatch splitting on libcc1
fixes github issue #194 - failure of cowpatch causes 0001-musl.diff
to be applied to a shadow copy of the tree, instead of where gcc
looks for the files.

fix analoguous to 91bdb320f1a17abe61d8105b0599dff6ec340452
2025-02-17 19:21:12 -05:00
rofl0r
f2d370bcd3 replace GCC 11.4.0 with 11.5.0
closes github issue #189 (gcc 11.4.0 fails to build)
and #190 with a backported fix that's now integrated.
fixes build with a host gcc14's more restrictive default
settings.
2025-02-17 18:01:32 -05:00
rofl0r
c1f8654e67 gcc 5-7: fix build error for x86 targets
building any of i?86, x86_64, and x32 targets on a *musl* host with a
recent gcc host version (in my testing gcc 11), fails due to attempt
to convert a pointer type (nullptr_t) implicitly to bool.

the issue affects the 3 supported gcc versions 5.3.0, 6.5.0 and 7.5.0.
2025-02-17 17:53:26 -05:00
Rich Felker
7b4c7b3152 add patches for CVE-2025-26519 to all supported musl versions 2025-02-13 16:19:00 -05:00
J. Neuschäfer
82d6c2a683 add gcc 14.2 hash and patches
The patches have been copied from 12.4.
2024-10-25 15:36:48 -04:00
J. Neuschäfer
b9789271ac add gcc 13.3 hash and patches
The patches have been copied from 12.4.
2024-10-25 15:36:48 -04:00
J. Neuschäfer
ec190b7196 add gcc 12.4 hash and patches
The patches have been copied from 11.4 and slightly adjusted to account
for renamed files (.c -> .cc).
2024-10-25 15:36:48 -04:00
rofl0r
fd6be58297 bump linux-headers to 4.19.88-2
this adds support for riscv and fixes a bug in swab.h, allowing
to build newer kernels - the objtool component is built using
host kernel headers, not the ones available in-tree.
2024-05-07 01:14:37 +00:00
Rich Felker
3d8bba9a6d add gcc 11.4.0 hash and patches, copied from 11.2.0 2024-05-06 12:36:18 -04:00
Rich Felker
d6a6d80eb2 add patch for binutils sh/fdpic bug 31619 2024-05-06 12:09:19 -04:00
Rich Felker
6486b2b2a2 add patch for gcc sh/fdpic bug 114641 2024-05-06 12:05:08 -04:00
Rich Felker
8f42acc89f remove support for non-latest gcc 9 series 2024-05-06 12:00:20 -04:00
Rich Felker
678797f062 fix fdpic regressions in gcc 10 and later
these were added when arm fdpic support was upstreamed in gcc. one patch
was just entirely wrong (broke arm init/fini arrays, gcc pr#114158) and
the other put arm-specific unwind logic in place for all fdpic targets
and broke building of the unwinder code.
2024-03-13 18:13:07 -04:00
Rich Felker
91bdb320f1 fix cowpatch issue with libstdc++-v3 directory in gcc
this directory uses relative pathnames to access libgcc unwind
headers, but with cowpatch, those are relative to the libstdc++-v3
directory in the unpatched tree unless libstdc++-v3 has been
cow-split.

this calls for a general solution at some point, but for now, just add
an explicit dummy patch to trigger cow splitting.
2024-03-13 18:13:07 -04:00
Rich Felker
e149c31c48 bump default musl version to 1.2.5 2024-02-29 21:22:15 -05:00
Rich Felker
faba06df14 add hash for musl 1.2.5 2024-02-29 21:22:08 -05:00
Viktor Szakats
26bb551045 use HTTPS when retrieving code from the internet 2024-02-22 10:27:12 -05:00
Kevin Bortis
1f5f342295 Update ISL upstream download location
http://isl.gforge.inria.fr was deprecated for some time and is now
down. This patch updates the download location to the new sourceforge
upstream location of the ISL project.
2024-02-22 10:23:52 -05:00
Rich Felker
e55fcd2d1d bump default musl version to 1.2.4 v0.9.10 2024-02-22 10:13:22 -05:00
Rich Felker
2519caabc0 add hash for musl 1.2.4 2024-02-22 10:12:25 -05:00
rofl0r
fe915821b6 bump gcc 11.1.0 to 11.2.0 2022-04-15 15:56:08 -04:00
Szabolcs Nagy
64649ce72d add gcc-11.1.0 hash and patches 2022-04-15 15:56:08 -04:00
Rich Felker
d06727c1c4 update musl version to 1.2.3 2022-04-15 15:51:21 -04:00
fanquake
0c9116aaa7
Add hash for musl 1.2.3 2022-04-09 22:31:59 +01:00
rofl0r
0f22991b8d update linux-headers to 4.19.88-1
the new release adds support for m68k and s390x archs.
2021-09-11 21:05:46 -04:00
Szabolcs Nagy
620d5d1564 add gcc-10.3.0 hash and patches 2021-09-08 20:59:41 +00:00
Rich Felker
3398364d6e litecross: force gcc to use init/fini arrays
I overlooked that GCC was not doing this by default for musl, since
binutils ld automatically converts the .ctors/.dtors GCC emits to
init/fini arrays at link time. unfortunately lld does not do the same,
so without --enable-initfini-array, GCC produces object files that lld
will mislink unless it was configured with support for legacy GCC
ctors.
2021-07-09 12:33:39 -04:00
Rich Felker
5b405688ee add gcc patches for powerpc-spe musl dynamic linker name
spe uses -sf abi
2021-07-05 14:49:24 -04:00
Rich Felker
7600764f17 add gcc 8.x patch for powerpc-spe support
gcc 8 split this out into a separate config dir, but the files there
are old bitrotted ones without musl support.
2021-06-25 17:48:30 -04:00
Rich Felker
30454c5887 add big-hammer patch for GCC bug 95189
this is a critical wrong-codegen bug in gcc 9 and 10 that can have
security impact, and oddly the fix still does not seem to have been
backported, so just disable builtin memcmp expansion entirely until
there's a known-good fix.
2021-06-23 21:53:57 -04:00
Rich Felker
0ce03e0f46 bump default gcc version to 9.4.0 2021-06-23 21:53:57 -04:00
rofl0r
aec25e57eb add GCC 9.4.0
0017-pr93402.diff was dropped, as it was merged upstream.
2021-06-23 21:53:57 -04:00
rofl0r
c4c5b49efa update GCC 8.3.0 to 8.5.0
0017-pr93402.diff was removed, as it was merged upstream.
2021-06-23 21:53:57 -04:00
IceCodeNew
52858e01e5 Use GNU Mirror 2021-06-23 21:53:48 -04:00