u-boot/arch/powerpc/cpu
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
..
74xx_7xx PowerPC: Move -fPIC flag to common place 2011-04-11 21:36:41 +02:00
mpc5xx PowerPC: Move -fPIC flag to common place 2011-04-11 21:36:41 +02:00
mpc5xxx PowerPC: Move -fPIC flag to common place 2011-04-11 21:36:41 +02:00
mpc8xx PowerPC: Move -fPIC flag to common place 2011-04-11 21:36:41 +02:00
mpc8xxx powerpc/8xxx: Fix typo for address hashing message 2011-04-04 09:24:43 -05:00
mpc83xx PowerPC: Move -fPIC flag to common place 2011-04-11 21:36:41 +02:00
mpc85xx PowerPC: Move -fPIC flag to common place 2011-04-11 21:36:41 +02:00
mpc86xx PowerPC: Move -fPIC flag to common place 2011-04-11 21:36:41 +02:00
mpc512x PowerPC: Move -fPIC flag to common place 2011-04-11 21:36:41 +02:00
mpc824x PowerPC: Move -fPIC flag to common place 2011-04-11 21:36:41 +02:00
mpc8220 PowerPC: Move -fPIC flag to common place 2011-04-11 21:36:41 +02:00
mpc8260 PowerPC: Move -fPIC flag to common place 2011-04-11 21:36:41 +02:00
ppc4xx PowerPC: Move -fPIC flag to common place 2011-04-11 21:36:41 +02:00