From: Simon Kagstrom Date: Thu, 1 Oct 2009 09:29:21 +0200 Subject: [U-Boot] [PATCH] Make arm926ejs use -mabi=apcs-gnu to avoid EABI problems In-Reply-To: <20090930203208.BA42B832E408@gemini.denx.de> References: <200909291555.55911.dk-arm-linux@gmx.de> <200909300902.15225.dk-arm-linux@gmx.de> <20090930090831.689a1b42@marrow.netinsight.se> <200909300940.07301.dk-arm-linux@gmx.de> <20090930095710.3480bb58@marrow.netinsight.se> <20090930203208.BA42B832E408@gemini.denx.de> Message-ID: <20091001092921.7baebe67@marrow.netinsight.se> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Using -mabi=apcs-gnu allows Marvell Kirkwood-based boards to boot with the EABI changes introduced in commit f772acf8a584067033eff1e231fcd1fb3a00d3d9. Signed-off-by: Simon Kagstrom --- Wolfgang can live with this change to make Kirkwood builds work again: On Wed, 30 Sep 2009 22:32:08 +0200 Wolfgang Denk wrote: > > -PLATFORM_CPPFLAGS += -march=armv5te > > +PLATFORM_CPPFLAGS += -march=armv5te -mabi=apcs-gnu > > I could live with this part, if it was thoroughly tested and does not > cause problems with the most frequently used tool chains (which I'm > afraid it would - I think I remember that I saw errors or unexpected > behaviour when using multiple, different "-mabi" settings). It would be nice though if owners of other arm926ejs-boards could test the patch and see that it doesn't break things. Depending on the compiler, you might want to build with USE_PRIVATE_LIBGCC=yes. I've tested on a OpenRD-base board. cpu/arm926ejs/config.mk | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/cpu/arm926ejs/config.mk b/cpu/arm926ejs/config.mk index f8ef90f..466ccff 100644 --- a/cpu/arm926ejs/config.mk +++ b/cpu/arm926ejs/config.mk @@ -23,7 +23,7 @@ PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float -PLATFORM_CPPFLAGS += -march=armv5te +PLATFORM_CPPFLAGS += -march=armv5te -mabi=apcs-gnu # ========================================================================= # # Supply options according to compiler version -- 1.6.0.4