u-boot/arch/powerpc
Joakim Tjernlund 33ee4c9233 PowerPC: Move -fPIC flag to common place
The -fPIC flag belongs with -mrelocatable, move it there.
Also change -fPIC to -fpic as this produces smaller
binaries.
However, currently -mrelocatable promotes -fpic to -fPIC, a
fix for this is in upcoming gcc 4.6 or you can apply this small
patch to gcc:

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
--

Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
2011-04-11 21:36:41 +02:00
..
cpu PowerPC: Move -fPIC flag to common place 2011-04-11 21:36:41 +02:00
include/asm fsl_esdhc: Deal with watermark level register related changes 2011-04-10 11:17:55 -05:00
lib powerpc: Add cpu_secondary_init_r to allow for initialization post env setup 2011-04-04 09:24:41 -05:00
config.mk PowerPC: Move -fPIC flag to common place 2011-04-11 21:36:41 +02:00