Commit Graph

256 Commits

Author SHA1 Message Date
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.
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 91bdb320f1
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 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
IceCodeNew ad8387d91f Update `MUSL_SITE` 2021-06-23 20:25:16 -04:00
rofl0r f442c9178b replace GCC 7.3.0 with 7.5.0 2021-06-23 20:19:07 -04:00
Rich Felker 7d4c0c0dd0 update default musl version to 1.2.2 2021-06-23 16:27:00 -04:00
Rich Felker f04af98d77 add hash for musl 1.2.2 2021-06-23 16:26:33 -04:00
Rich Felker b12ded5078 add linux-5.8.5 headers support 2020-10-01 15:15:30 -04:00
Rich Felker b29ed1829e update gcc futex time64 patch for compat with riscv32
riscv32 will define both syscalls but with equal value, and long will
not be the right timespec member type.
2020-09-23 17:56:47 -04:00
Rich Felker 87157fa4b4 add pattern for linux 5.x sources to makefile 2020-08-28 18:56:20 -04:00
Rich Felker 5171ee8724 update default musl version to 1.2.1 2020-08-04 12:05:32 -04:00
Rich Felker af5993a561 add hash for musl 1.2.1 2020-08-04 12:05:04 -04:00
Rich Felker 531af98526 improve m68k sqrt patch not to suppress insn on archs where it works
the 60840 fpu and later, and coldfire fpus, have precision-specific
sqrt instructions that get used and do the right thing. only when
targeting baseline (or near-baseline) ISA does the ld80-only
instruction get used, and that's all that needs to be suppressed.
2020-07-02 12:22:13 -04:00
Rich Felker d04fb4943f add patch fixing broken m68k sqrt
gcc pr 95921. the m68k sqrt rtl handles excess precision wrong. I
couldn't figure out how to make gcc generate the insn only for long
double, but since long double usage is rare anyway, just remove it.
this can be replaced with a proper fix later if there's ever one
upstream.
2020-06-30 16:35:55 -04:00
Rich Felker b0820cc501 don't replace config.sub in gmp
gmp has its own wrapper version of this file and calls the real one
configfsf.sub. within the gcc build, replacing the wrong one is
harmless, but it breaks independent use of the patched gmp tree and
it's logically wrong.

patch by Laurent Bercot.
2020-06-27 01:35:13 -04:00
Rich Felker d6ded50dd7 add patch to disable arm vdso in musl 1.2.0
reportedly the vdso version of clock_gettime64 produces erratic
results on arm with linux 5.6, and earlier versions did not have the
vdso function at all. it's not clear what the eventual upstream
solution will be, but something needs to be done so as not to be
producing binaries that seem to work now but will break fantastically
when moving to newer kernels.
2020-04-26 14:05:29 -04:00
Peter Jin 5086175f29 allow sha1 hash checking command to be configured 2020-03-07 20:55:08 -05:00
Filippo Valsorda a54eb56f33 Use CURDIR instead of PWD
PWD is set by the shell, not make, and might not match.

For example, this broke the build through Homebrew, because
PWD stays at the directory where brew is ran.
2020-03-07 20:53:13 -05:00