aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-05-30 21:19:32 -0400
committerRich Felker <dalias@aerifal.cx>2012-05-30 21:19:32 -0400
commited6717277c4c5d6f3296d931d35a0f1beb73a024 (patch)
tree1c3cf21650319155f1cfa3a52990545aa5c76001 /tools
parenta34b0465ba14c70532b8eaba650a9eac228fce57 (diff)
downloadmusl-ed6717277c4c5d6f3296d931d35a0f1beb73a024.zip
musl-ed6717277c4c5d6f3296d931d35a0f1beb73a024.tar.gz
musl-ed6717277c4c5d6f3296d931d35a0f1beb73a024.tar.bz2
fix musl-gcc wrapper to work with -pie
linking the wrong crt1.o resulted in textrels and thus crashing
Diffstat (limited to 'tools')
-rw-r--r--tools/musl-gcc.specs.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/musl-gcc.specs.sh b/tools/musl-gcc.specs.sh
index 30b2676..5604685 100644
--- a/tools/musl-gcc.specs.sh
+++ b/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