mirror of git://git.musl-libc.org/musl
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)
|
libgcc.a%s %:if-exists(libgcc_eh.a%s)
|
||||||
|
|
||||||
*startfile:
|
*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:
|
*endfile:
|
||||||
%{shared|pie:crtendS.o%s;:crtend.o%s} $libdir/crtn.o
|
%{shared|pie:crtendS.o%s;:crtend.o%s} $libdir/crtn.o
|
||||||
|
|
Loading…
Reference in New Issue