diff options
author | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2009-01-06 21:05:33 +0000 |
---|---|---|
committer | Yann E. MORIN" <yann.morin.1998@anciens.enib.fr> | 2009-01-06 21:05:33 +0000 |
commit | 0b28fc00e162be1e5449762ee51807377ddb7ba0 (patch) | |
tree | a84cc949436c75126110adec737e586da770a8c6 /patches/gcc | |
parent | 8b18c7d30d12cb4aa21cc2018917643f85753c83 (diff) | |
download | crosstool-ng-0b28fc00e162be1e5449762ee51807377ddb7ba0.tar.gz crosstool-ng-0b28fc00e162be1e5449762ee51807377ddb7ba0.tar.bz2 crosstool-ng-0b28fc00e162be1e5449762ee51807377ddb7ba0.zip |
Fix building ARM Big Endian toolchain:
- add a patch by Gilles CHANTEPERDRIX.
/trunk/patches/gcc/4.2.4/241-arm-bigendian2.patch | 33 33 0 0 +++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
Diffstat (limited to 'patches/gcc')
-rw-r--r-- | patches/gcc/4.2.4/241-arm-bigendian2.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/patches/gcc/4.2.4/241-arm-bigendian2.patch b/patches/gcc/4.2.4/241-arm-bigendian2.patch new file mode 100644 index 00000000..9b9c1314 --- /dev/null +++ b/patches/gcc/4.2.4/241-arm-bigendian2.patch @@ -0,0 +1,33 @@ +Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org> wrote: + +I tried to use crosstool-ng to generate a toolchain for Linux on big +endian arm with recent versions of gcc, glibc, etc... but had a few +problems. + +It appears that the gcc patch (for gcc 4.2.x) +for big-endian arm (240-arm-bigendian.patch) lacks the change attached +to this mail as 240-arm-bigendian2.patch. + +--- gcc-4.2.4/gcc/config/arm/bpabi.h~ 2007-09-01 17:28:30.000000000 +0200 ++++ gcc-4.2.4/gcc/config/arm/bpabi.h 2009-01-05 19:19:10.000000000 +0100 +@@ -32,9 +32,19 @@ + #undef FPUTYPE_DEFAULT + #define FPUTYPE_DEFAULT FPUTYPE_VFP + ++/* ++ * 'config.gcc' defines TARGET_BIG_ENDIAN_DEFAULT as 1 for arm*b-* ++ * (big endian) configurations. ++ */ ++#if TARGET_BIG_ENDIAN_DEFAULT ++#define TARGET_ENDIAN_DEFAULT MASK_BIG_END ++#else ++#define TARGET_ENDIAN_DEFAULT 0 ++#endif ++ + /* EABI targets should enable interworking by default. */ + #undef TARGET_DEFAULT +-#define TARGET_DEFAULT MASK_INTERWORK ++#define TARGET_DEFAULT (MASK_INTERWORK | TARGET_ENDIAN_DEFAULT) + + /* The ARM BPABI functions return a boolean; they use no special + calling convention. */ |