6 Commits

Author SHA1 Message Date
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
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
6486b2b2a2 add patch for gcc sh/fdpic bug 114641 2024-05-06 12:05:08 -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
rofl0r
fe915821b6 bump gcc 11.1.0 to 11.2.0 2022-04-15 15:56:08 -04:00