X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=mips_config.mk;h=05eb05d045921e19ac860221e13a62dfd5564622;hb=c360d9b970fbb9c13744c355879671165bbb9b9e;hp=67fb67d291dd8bbcbc6f82a3e98f9d496223a9c2;hpb=5c568d6a7f950b9e7e32a63a5893f979b8789b4d;p=u-boot diff --git a/mips_config.mk b/mips_config.mk index 67fb67d291..05eb05d045 100644 --- a/mips_config.mk +++ b/mips_config.mk @@ -40,10 +40,9 @@ PLATFORM_CPPFLAGS += -DCONFIG_MIPS -D__MIPS__ # LDFLAGS_vmlinux += -G 0 -static -n -nostdlib # MODFLAGS += -mlong-calls # - -# -# Meanwhile, U-Boot rely on PIC. We add proper switches explicitly. +# On the other hand, we want PIC in the U-Boot code to relocate it from ROM +# to RAM. $28 is always used as gp. # -PLATFORM_CPPFLAGS += -G 0 -mabicalls -fpic -pipe +PLATFORM_CPPFLAGS += -G 0 -mabicalls -fpic PLATFORM_CPPFLAGS += -msoft-float PLATFORM_LDFLAGS += -G 0 -static -n -nostdlib