Link -static -pie executables on powerpc with rcrt0.o instead of crt0.o
authorkurt <kurt@openbsd.org>
Fri, 26 Dec 2014 13:53:43 +0000 (13:53 +0000)
committerkurt <kurt@openbsd.org>
Fri, 26 Dec 2014 13:53:43 +0000 (13:53 +0000)
such that they self-relocate. okay kettenis@

gnu/gcc/gcc/config/rs6000/sysv4.h

index 48c9b1f..6a800b6 100644 (file)
@@ -973,8 +973,9 @@ ncrtn.o%s"
 
 #ifndef        STARTFILE_OPENBSD_SPEC
 #define        STARTFILE_OPENBSD_SPEC "\
-%{!shared: %{pg:gcrt0.o%s} %{!pg:%{p:gcrt0.o%s} %{!p:crt0.o%s}}} \
-%{!shared:crtbegin.o%s} %{shared:crtbeginS.o%s}"
+%{!shared: %{pg:gcrt0%O%s} %{!pg:%{p:gcrt0%O%s} \
+%{!p:%{!static:crt0%O%s} %{static:%{pie:rcrt0%O%s} %{!pie:crt0%O%s}}}} \
+crtbegin%O%s} %{shared:crtbeginS%O%s}"
 #endif
 
 #ifndef        ENDFILE_OPENBSD_SPEC