Procházet zdrojové kódy

fix musl-gcc wrapper to work with -pie

linking the wrong crt1.o resulted in textrels and thus crashing
Rich Felker před 12 roky
rodič
revize
ed6717277c
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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