extra big endian patch to create binaries with a correct ELF header.
authorDerek Young <dyoung@nslu2-linux.org>
Sun, 2 Mar 2008 10:22:58 +0000 (10:22 +0000)
committerDerek Young <dyoung@nslu2-linux.org>
Sun, 2 Mar 2008 10:22:58 +0000 (10:22 +0000)
packages/gcc/gcc-4.2.2/intermask-bigendian.patch [new file with mode: 0644]
packages/gcc/gcc-cross_4.2.2.bb
packages/gcc/gcc_4.2.2.bb

diff --git a/packages/gcc/gcc-4.2.2/intermask-bigendian.patch b/packages/gcc/gcc-4.2.2/intermask-bigendian.patch
new file mode 100644 (file)
index 0000000..fdff3d3
--- /dev/null
@@ -0,0 +1,24 @@
+--- gcc-4.2.0/gcc/config/arm/bpabi.h
++++ gcc-4.2.0/gcc/config/arm/bpabi.h
+@@ -33,9 +33,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.  */
+
index c461245..def1659 100644 (file)
@@ -5,7 +5,7 @@ inherit cross
 FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/gcc-${PV}"
 # NOTE: split PR.  If the main .oe changes something that affects its *build*
 # remember to increment this one too.
-PR = "r5"
+PR = "r6"
 
 DEPENDS = "virtual/${TARGET_PREFIX}binutils virtual/${TARGET_PREFIX}libc-for-gcc gmp-native mpfr-native"
 PROVIDES = "virtual/${TARGET_PREFIX}gcc virtual/${TARGET_PREFIX}g++"
index 1cfd085..0a0e9cd 100644 (file)
@@ -2,7 +2,7 @@ DESCRIPTION = "The GNU cc and gcc C compilers."
 HOMEPAGE = "http://www.gnu.org/software/gcc/"
 SECTION = "devel"
 LICENSE = "GPL"
-PR = "r5"
+PR = "r6"
 
 inherit autotools gettext
 
@@ -43,6 +43,7 @@ SRC_URI = "ftp://ftp.gnu.org/pub/gnu/gcc/gcc-${PV}/gcc-${PV}.tar.bz2 \
        file://gcc-4.0.2-e300c2c3.patch;patch=1 \
        file://pr34130.patch;patch=1 \
        file://fortran-static-linking.patch;patch=1 \
+       file://intermask-bigendian.patch;patch=1 \
 "
 
 SRC_URI_append_ep93xx = " \