From 12951b6c4c20628378ea08a4d738c612cb91b16e Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Sat, 17 Mar 2012 14:27:50 -0400 Subject: [PATCH] mips.py: add -mplt to non-n64 CFLAGS --- modules/catalyst/arch/mips.py | 86 +++++++++++++++++------------------ 1 file changed, 43 insertions(+), 43 deletions(-) diff --git a/modules/catalyst/arch/mips.py b/modules/catalyst/arch/mips.py index 6565e765..cf51ea36 100644 --- a/modules/catalyst/arch/mips.py +++ b/modules/catalyst/arch/mips.py @@ -33,45 +33,45 @@ class arch_mips1(generic_mips): "Builder class for MIPS I [Big-endian]" def __init__(self,myspec): generic_mips.__init__(self,myspec) - self.settings["CFLAGS"]="-O2 -march=mips1 -mabi=32 -pipe" + self.settings["CFLAGS"]="-O2 -march=mips1 -mabi=32 -mplt -pipe" class arch_mips32(generic_mips): "Builder class for MIPS 32 [Big-endian]" def __init__(self,myspec): generic_mips.__init__(self,myspec) - self.settings["CFLAGS"]="-O2 -march=mips32 -mabi=32 -pipe" + self.settings["CFLAGS"]="-O2 -march=mips32 -mabi=32 -mplt -pipe" class arch_mips32_softfloat(generic_mips): "Builder class for MIPS 32 [Big-endian softfloat]" def __init__(self,myspec): generic_mips.__init__(self,myspec) - self.settings["CFLAGS"]="-O2 -march=mips32 -mabi=32 -pipe" + self.settings["CFLAGS"]="-O2 -march=mips32 -mabi=32 -mplt -pipe" self.settings["CHOST"]="mips-softfloat-linux-gnu" class arch_mips32r2(generic_mips): "Builder class for MIPS 32r2 [Big-endian]" def __init__(self,myspec): generic_mips.__init__(self,myspec) - self.settings["CFLAGS"]="-O2 -march=mips32r2 -mabi=32 -pipe" + self.settings["CFLAGS"]="-O2 -march=mips32r2 -mabi=32 -mplt -pipe" class arch_mips32r2_softfloat(generic_mips): "Builder class for MIPS 32r2 [Big-endian softfloat]" def __init__(self,myspec): generic_mips.__init__(self,myspec) - self.settings["CFLAGS"]="-O2 -march=mips32r2 -mabi=32 -pipe" + self.settings["CFLAGS"]="-O2 -march=mips32r2 -mabi=32 -mplt -pipe" self.settings["CHOST"]="mips-softfloat-linux-gnu" class arch_mips3(generic_mips): "Builder class for MIPS III [Big-endian]" def __init__(self,myspec): generic_mips.__init__(self,myspec) - self.settings["CFLAGS"]="-O2 -march=mips3 -mabi=32 -mfix-r4000 -mfix-r4400 -pipe" + self.settings["CFLAGS"]="-O2 -march=mips3 -mabi=32 -mplt -mfix-r4000 -mfix-r4400 -pipe" class arch_mips3_n32(generic_mips64): "Builder class for MIPS III [Big-endian N32]" def __init__(self,myspec): generic_mips64.__init__(self,myspec) - self.settings["CFLAGS"]="-O2 -march=mips3 -mabi=n32 -mfix-r4000 -mfix-r4400 -pipe" + self.settings["CFLAGS"]="-O2 -march=mips3 -mabi=n32 -mplt -mfix-r4000 -mfix-r4400 -pipe" class arch_mips3_n64(generic_mips64): "Builder class for MIPS III [Big-endian N64]" @@ -83,19 +83,19 @@ class arch_mips3_multilib(generic_mips64): "Builder class for MIPS III [Big-endian multilib]" def __init__(self,myspec): generic_mips64.__init__(self,myspec) - self.settings["CFLAGS"]="-O2 -march=mips3 -mfix-r4000 -mfix-r4400 -pipe" + self.settings["CFLAGS"]="-O2 -march=mips3 -mplt -mfix-r4000 -mfix-r4400 -pipe" class arch_mips4(generic_mips): "Builder class for MIPS IV [Big-endian]" def __init__(self,myspec): generic_mips.__init__(self,myspec) - self.settings["CFLAGS"]="-O2 -march=mips4 -mabi=32 -pipe" + self.settings["CFLAGS"]="-O2 -march=mips4 -mabi=32 -mplt -pipe" class arch_mips4_n32(generic_mips64): "Builder class for MIPS IV [Big-endian N32]" def __init__(self,myspec): generic_mips64.__init__(self,myspec) - self.settings["CFLAGS"]="-O2 -march=mips4 -mabi=n32 -pipe" + self.settings["CFLAGS"]="-O2 -march=mips4 -mabi=n32 -mplt -pipe" class arch_mips4_n64(generic_mips64): "Builder class for MIPS IV [Big-endian N64]" @@ -107,19 +107,19 @@ class arch_mips4_multilib(generic_mips64): "Builder class for MIPS IV [Big-endian multilib]" def __init__(self,myspec): generic_mips64.__init__(self,myspec) - self.settings["CFLAGS"]="-O2 -march=mips4 -pipe" + self.settings["CFLAGS"]="-O2 -march=mips4 -mplt -pipe" class arch_mips4_r10k(generic_mips): "Builder class for MIPS IV R10k [Big-endian]" def __init__(self,myspec): generic_mips.__init__(self,myspec) - self.settings["CFLAGS"]="-O2 -march=r10k -mabi=32 -pipe" + self.settings["CFLAGS"]="-O2 -march=r10k -mabi=32 -mplt -pipe" class arch_mips4_r10k_n32(generic_mips64): "Builder class for MIPS IV R10k [Big-endian N32]" def __init__(self,myspec): generic_mips64.__init__(self,myspec) - self.settings["CFLAGS"]="-O2 -march=r10k -mabi=n32 -pipe" + self.settings["CFLAGS"]="-O2 -march=r10k -mabi=n32 -mplt -pipe" class arch_mips4_r10k_n64(generic_mips64): "Builder class for MIPS IV R10k [Big-endian N64]" @@ -131,19 +131,19 @@ class arch_mips4_r10k_multilib(generic_mips64): "Builder class for MIPS IV R10k [Big-endian multilib]" def __init__(self,myspec): generic_mips64.__init__(self,myspec) - self.settings["CFLAGS"]="-O2 -march=r10k -pipe" + self.settings["CFLAGS"]="-O2 -march=r10k -mplt -pipe" class arch_mips64(generic_mips): "Builder class for MIPS 64 [Big-endian]" def __init__(self,myspec): generic_mips.__init__(self,myspec) - self.settings["CFLAGS"]="-O2 -march=mips64 -mabi=32 -pipe" + self.settings["CFLAGS"]="-O2 -march=mips64 -mabi=32 -mplt -pipe" class arch_mips64_n32(generic_mips64): "Builder class for MIPS 64 [Big-endian N32]" def __init__(self,myspec): generic_mips64.__init__(self,myspec) - self.settings["CFLAGS"]="-O2 -march=mips64 -mabi=n32 -pipe" + self.settings["CFLAGS"]="-O2 -march=mips64 -mabi=n32 -mplt -pipe" class arch_mips64_n64(generic_mips64): "Builder class for MIPS 64 [Big-endian N64]" @@ -155,19 +155,19 @@ class arch_mips64_multilib(generic_mips64): "Builder class for MIPS 64 [Big-endian multilib]" def __init__(self,myspec): generic_mips64.__init__(self,myspec) - self.settings["CFLAGS"]="-O2 -march=mips64 -pipe" + self.settings["CFLAGS"]="-O2 -march=mips64 -mplt -pipe" class arch_mips64r2(generic_mips): "Builder class for MIPS 64r2 [Big-endian]" def __init__(self,myspec): generic_mips.__init__(self,myspec) - self.settings["CFLAGS"]="-O2 -march=mips64r2 -mabi=32 -pipe" + self.settings["CFLAGS"]="-O2 -march=mips64r2 -mabi=32 -mplt -pipe" class arch_mips64r2_n32(generic_mips64): "Builder class for MIPS 64r2 [Big-endian N32]" def __init__(self,myspec): generic_mips64.__init__(self,myspec) - self.settings["CFLAGS"]="-O2 -march=mips64r2 -mabi=n32 -pipe" + self.settings["CFLAGS"]="-O2 -march=mips64r2 -mabi=n32 -mplt -pipe" class arch_mips64r2_n64(generic_mips64): "Builder class for MIPS 64r2 [Big-endian N64]" @@ -179,51 +179,51 @@ class arch_mips64r2_multilib(generic_mips64): "Builder class for MIPS 64r2 [Big-endian multilib]" def __init__(self,myspec): generic_mips64.__init__(self,myspec) - self.settings["CFLAGS"]="-O2 -march=mips64r2 -pipe" + self.settings["CFLAGS"]="-O2 -march=mips64r2 -mplt -pipe" class arch_mipsel1(generic_mipsel): "Builder class for MIPS I [Little-endian]" def __init__(self,myspec): generic_mipsel.__init__(self,myspec) - self.settings["CFLAGS"]="-O2 -march=mips1 -mabi=32 -pipe" + self.settings["CFLAGS"]="-O2 -march=mips1 -mabi=32 -mplt -pipe" class arch_mips32el(generic_mipsel): "Builder class for MIPS 32 [Little-endian]" def __init__(self,myspec): generic_mipsel.__init__(self,myspec) - self.settings["CFLAGS"]="-O2 -march=mips32 -mabi=32 -pipe" + self.settings["CFLAGS"]="-O2 -march=mips32 -mabi=32 -mplt -pipe" class arch_mips32el_softfloat(generic_mipsel): "Builder class for MIPS 32 [Little-endian softfloat]" def __init__(self,myspec): generic_mipsel.__init__(self,myspec) - self.settings["CFLAGS"]="-O2 -march=mips32 -mabi=32 -pipe" + self.settings["CFLAGS"]="-O2 -march=mips32 -mabi=32 -mplt -pipe" self.settings["CHOST"]="mipsel-softfloat-linux-gnu" class arch_mips32r2el(generic_mipsel): "Builder class for MIPS 32r2 [Little-endian]" def __init__(self,myspec): generic_mipsel.__init__(self,myspec) - self.settings["CFLAGS"]="-O2 -march=mips32r2 -mabi=32 -pipe" + self.settings["CFLAGS"]="-O2 -march=mips32r2 -mabi=32 -mplt -pipe" class arch_mips32r2el_softfloat(generic_mipsel): "Builder class for MIPS 32r2 [Little-endian softfloat]" def __init__(self,myspec): generic_mipsel.__init__(self,myspec) - self.settings["CFLAGS"]="-O2 -march=mips32r2 -mabi=32 -pipe" + self.settings["CFLAGS"]="-O2 -march=mips32r2 -mabi=32 -mplt -pipe" self.settings["CHOST"]="mipsel-softfloat-linux-gnu" class arch_mipsel3(generic_mipsel): "Builder class for MIPS III [Little-endian]" def __init__(self,myspec): generic_mipsel.__init__(self,myspec) - self.settings["CFLAGS"]="-O2 -march=mips3 -mabi=32 -Wa,-mfix-loongson2f-nop -pipe" + self.settings["CFLAGS"]="-O2 -march=mips3 -mabi=32 -mplt -Wa,-mfix-loongson2f-nop -pipe" class arch_mipsel3_n32(generic_mips64el): "Builder class for MIPS III [Little-endian N32]" def __init__(self,myspec): generic_mips64el.__init__(self,myspec) - self.settings["CFLAGS"]="-O2 -march=mips3 -mabi=n32 -Wa,-mfix-loongson2f-nop -pipe" + self.settings["CFLAGS"]="-O2 -march=mips3 -mabi=n32 -mplt -Wa,-mfix-loongson2f-nop -pipe" class arch_mipsel3_n64(generic_mips64el): "Builder class for MIPS III [Little-endian N64]" @@ -235,43 +235,43 @@ class arch_mipsel3_multilib(generic_mips64el): "Builder class for MIPS III [Little-endian multilib]" def __init__(self,myspec): generic_mips64el.__init__(self,myspec) - self.settings["CFLAGS"]="-O2 -march=mips3 -Wa,-mfix-loongson2f-nop -pipe" + self.settings["CFLAGS"]="-O2 -march=mips3 -mplt -Wa,-mfix-loongson2f-nop -pipe" class arch_loongson2e(generic_mipsel): "Builder class for Loongson 2E [Little-endian]" def __init__(self,myspec): generic_mipsel.__init__(self,myspec) - self.settings["CFLAGS"]="-O2 -march=loongson2e -mabi=32 -pipe -mplt" + self.settings["CFLAGS"]="-O2 -march=loongson2e -mabi=32 -mplt -pipe" class arch_loongson2e_n32(generic_mips64el): "Builder class for Loongson 2E [Little-endian N32]" def __init__(self,myspec): generic_mips64el.__init__(self,myspec) - self.settings["CFLAGS"]="-O2 -march=loongson2e -mabi=n32 -pipe -mplt" + self.settings["CFLAGS"]="-O2 -march=loongson2e -mabi=n32 -mplt -pipe" class arch_loongson2f(generic_mipsel): "Builder class for Loongson 2F [Little-endian]" def __init__(self,myspec): generic_mipsel.__init__(self,myspec) - self.settings["CFLAGS"]="-O3 -march=loongson2f -mabi=32 -pipe -mplt -Wa,-mfix-loongson2f-nop" + self.settings["CFLAGS"]="-O3 -march=loongson2f -mabi=32 -mplt -Wa,-mfix-loongson2f-nop -pipe" class arch_loongson2f_n32(generic_mips64el): "Builder class for Loongson 2F [Little-endian N32]" def __init__(self,myspec): generic_mips64el.__init__(self,myspec) - self.settings["CFLAGS"]="-O3 -march=loongson2f -mabi=n32 -pipe -mplt -Wa,-mfix-loongson2f-nop" + self.settings["CFLAGS"]="-O3 -march=loongson2f -mabi=n32 -mplt -Wa,-mfix-loongson2f-nop -pipe" class arch_mipsel4(generic_mipsel): "Builder class for MIPS IV [Little-endian]" def __init__(self,myspec): generic_mipsel.__init__(self,myspec) - self.settings["CFLAGS"]="-O2 -march=mips4 -mabi=32 -pipe" + self.settings["CFLAGS"]="-O2 -march=mips4 -mabi=32 -mplt -pipe" class arch_mipsel4_n32(generic_mips64el): "Builder class for MIPS IV [Little-endian N32]" def __init__(self,myspec): generic_mips64el.__init__(self,myspec) - self.settings["CFLAGS"]="-O2 -march=mips4 -mabi=n32 -pipe" + self.settings["CFLAGS"]="-O2 -march=mips4 -mabi=n32 -mplt -pipe" class arch_mipsel4_n64(generic_mips64el): "Builder class for MIPS IV [Little-endian N64]" @@ -283,19 +283,19 @@ class arch_mipsel4_multilib(generic_mips64el): "Builder class for MIPS IV [Little-endian multilib]" def __init__(self,myspec): generic_mips64el.__init__(self,myspec) - self.settings["CFLAGS"]="-O2 -march=mips4 -pipe" + self.settings["CFLAGS"]="-O2 -march=mips4 -mplt -pipe" class arch_mips64el(generic_mipsel): "Builder class for MIPS 64 [Little-endian]" def __init__(self,myspec): generic_mipsel.__init__(self,myspec) - self.settings["CFLAGS"]="-O2 -march=mips64 -mabi=32 -pipe" + self.settings["CFLAGS"]="-O2 -march=mips64 -mabi=32 -mplt -pipe" class arch_mips64el_n32(generic_mips64el): "Builder class for MIPS 64 [Little-endian N32]" def __init__(self,myspec): generic_mips64el.__init__(self,myspec) - self.settings["CFLAGS"]="-O2 -march=mips64 -mabi=n32 -pipe" + self.settings["CFLAGS"]="-O2 -march=mips64 -mabi=n32 -mplt -pipe" class arch_mips64el_n64(generic_mips64el): "Builder class for MIPS 64 [Little-endian N64]" @@ -307,19 +307,19 @@ class arch_mips64el_multilib(generic_mips64el): "Builder class for MIPS 64 [Little-endian multilib]" def __init__(self,myspec): generic_mips64el.__init__(self,myspec) - self.settings["CFLAGS"]="-O2 -march=mips64 -pipe" + self.settings["CFLAGS"]="-O2 -march=mips64 -mplt -pipe" class arch_mips64r2el(generic_mipsel): "Builder class for MIPS 64r2 [Little-endian]" def __init__(self,myspec): generic_mipsel.__init__(self,myspec) - self.settings["CFLAGS"]="-O2 -march=mips64r2 -mabi=32 -pipe" + self.settings["CFLAGS"]="-O2 -march=mips64r2 -mabi=32 -mplt -pipe" class arch_mips64r2el_n32(generic_mips64el): "Builder class for MIPS 64r2 [Little-endian N32]" def __init__(self,myspec): generic_mips64el.__init__(self,myspec) - self.settings["CFLAGS"]="-O2 -march=mips64r2 -mabi=n32 -pipe" + self.settings["CFLAGS"]="-O2 -march=mips64r2 -mabi=n32 -mplt -pipe" class arch_mips64r2el_n64(generic_mips64el): "Builder class for MIPS 64r2 [Little-endian N64]" @@ -331,20 +331,20 @@ class arch_mips64r2el_multilib(generic_mips64el): "Builder class for MIPS 64r2 [Little-endian multilib]" def __init__(self,myspec): generic_mips64el.__init__(self,myspec) - self.settings["CFLAGS"]="-O2 -march=mips64r2 -pipe" + self.settings["CFLAGS"]="-O2 -march=mips64r2 -mplt -pipe" class arch_cobalt(generic_mipsel): "Builder class for cobalt [Little-endian]" def __init__(self,myspec): generic_mipsel.__init__(self,myspec) - self.settings["CFLAGS"]="-O2 -march=r5000 -mabi=32 -pipe" + self.settings["CFLAGS"]="-O2 -march=r5000 -mabi=32 -mplt -pipe" self.settings["HOSTUSE"]=["cobalt"] class arch_cobalt_n32(generic_mips64el): "Builder class for cobalt [Little-endian N32]" def __init__(self,myspec): generic_mips64el.__init__(self,myspec) - self.settings["CFLAGS"]="-O2 -march=r5000 -mabi=n32 -pipe" + self.settings["CFLAGS"]="-O2 -march=r5000 -mabi=n32 -mplt -pipe" self.settings["HOSTUSE"]=["cobalt"] _subarch_map = { -- 2.26.2