u-boot/arch
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
..
arm ARMV7: S5P: Fixed register offset in mmc.h 2011-03-27 19:20:21 +02:00
avr32 rename _end to __bss_end__ 2011-03-27 19:18:37 +02:00
blackfin Blackfin: replace "bfin_reset_or_hang()" with "panic()" 2011-04-08 00:44:27 -04:00
i386 Coding Style cleanup: remove trailing empty lines 2011-03-27 21:48:08 +02:00
m68k rename _end to __bss_end__ 2011-03-27 19:18:37 +02:00
microblaze microblaze: Fix msr handling in interrupt_handler 2011-02-15 15:13:24 +01:00
mips MIPS: Au1x00: Move all Au1x00 specific code to separate subdirectory 2011-04-02 22:07:12 +09:00
nios2 rename _end to __bss_end__ 2011-03-27 19:18:37 +02:00
powerpc PowerPC: Move -fPIC flag to common place 2011-04-11 21:36:41 +02:00
sh Coding Style cleanup: remove trailing empty lines 2011-03-27 21:48:08 +02:00
sparc Replace "FLASH" strings with "Flash" or "flash" 2011-01-19 00:02:37 +01:00
.gitignore update include/asm/ gitignore after move 2010-05-07 00:17:30 +02:00