From 931aa2fa8b3ff5b368918cc9faf38f3b5a77a7b8 Mon Sep 17 00:00:00 2001 From: kurt Date: Fri, 26 Dec 2014 13:53:43 +0000 Subject: [PATCH] Link -static -pie executables on powerpc with rcrt0.o instead of crt0.o such that they self-relocate. okay kettenis@ --- gnu/gcc/gcc/config/rs6000/sysv4.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gnu/gcc/gcc/config/rs6000/sysv4.h b/gnu/gcc/gcc/config/rs6000/sysv4.h index 48c9b1f80f6..6a800b61438 100644 --- a/gnu/gcc/gcc/config/rs6000/sysv4.h +++ b/gnu/gcc/gcc/config/rs6000/sysv4.h @@ -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 -- 2.20.1