diff options
author | Rich Felker <dalias@aerifal.cx> | 2012-05-30 21:19:32 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2012-05-30 21:19:32 -0400 |
commit | ed6717277c4c5d6f3296d931d35a0f1beb73a024 (patch) | |
tree | 1c3cf21650319155f1cfa3a52990545aa5c76001 /tools | |
parent | a34b0465ba14c70532b8eaba650a9eac228fce57 (diff) | |
download | musl-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.sh | 2 |
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 |