Explorar o código

fix musl-gcc wrapper to work with -pie

linking the wrong crt1.o resulted in textrels and thus crashing
Rich Felker %!s(int64=12) %!d(string=hai) anos
pai
achega
ed6717277c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      tools/musl-gcc.specs.sh

+ 1 - 1
tools/musl-gcc.specs.sh

@@ -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