[PATCH] powerpc: Support -fpic too with mrelocatable

Joakim Tjernlund Joakim.Tjernlund at transmode.se
Sun Oct 10 10:34:50 CEST 2010


Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund at transmode.se>
---
 sysv4.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/gcc/config/rs6000/sysv4.h b/gcc/config/rs6000/sysv4.h
index 8da8410..e4b8280 100644
--- a/gcc/config/rs6000/sysv4.h
+++ b/gcc/config/rs6000/sysv4.h
@@ -227,7 +227,8 @@ do {                \
     }                                                                  \
                                                                        \
   else if (TARGET_RELOCATABLE)                                         \
-    flag_pic = 2;                                                      \
+    if (!flag_pic)                                                     \
+      flag_pic = 2;                                                    \
 } while (0)
 
 #ifndef RS6000_BI_ARCH
-- 
1.7.2.2



More information about the U-Boot mailing list