projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a34b046
)
fix musl-gcc wrapper to work with -pie
author
Rich Felker
<dalias@aerifal.cx>
Thu, 31 May 2012 01:19:32 +0000
(21:19 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Thu, 31 May 2012 01:19:32 +0000
(21:19 -0400)
linking the wrong crt1.o resulted in textrels and thus crashing
tools/musl-gcc.specs.sh
patch
|
blob
|
history
diff --git
a/tools/musl-gcc.specs.sh
b/tools/musl-gcc.specs.sh
index 30b2676d661f7cb0fc1699d655b7dd34a72fc4d1..5604685a79505507e19a28f84f0b99ba3f5686ff 100644
(file)
--- 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