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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue