Browse Source

fix musl-gcc wrapper to work with -pie

linking the wrong crt1.o resulted in textrels and thus crashing
Rich Felker 12 years ago
parent
commit
ed6717277c
1 changed files with 1 additions and 1 deletions
  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