mirror of
https://github.com/fluencelabs/musl
synced 2025-07-30 22:01:57 +00: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:
@@ -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
|
||||
|
Reference in New Issue
Block a user