mirror of
https://git.musl-libc.org/git/musl
synced 2025-01-06 23:02:10 +03:00
fix musl-gcc wrapper to work with -pie
linking the wrong crt1.o resulted in textrels and thus crashing
This commit is contained in:
parent
a34b0465ba
commit
ed6717277c
@ -17,7 +17,7 @@ cat <<EOF
|
||||
libgcc.a%s %:if-exists(libgcc_eh.a%s)
|
||||
|
||||
*startfile:
|
||||
%{!shared: $libdir/crt1.o} $libdir/crti.o %{shared|pie:crtbeginS.o%s;:crtbegin.o%s}
|
||||
%{!shared: $libdir/%{pie:S}crt1.o} $libdir/crti.o %{shared|pie:crtbeginS.o%s;:crtbegin.o%s}
|
||||
|
||||
*endfile:
|
||||
%{shared|pie:crtendS.o%s;:crtend.o%s} $libdir/crtn.o
|
||||
|
Loading…
Reference in New Issue
Block a user