浏览代码

fix musl-gcc wrapper to work with -pie

linking the wrong crt1.o resulted in textrels and thus crashing
Rich Felker 12 年之前
父节点
当前提交
ed6717277c
共有 1 个文件被更改,包括 1 次插入1 次删除
  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