aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorDaniel Gutson <dgutson@codesourcery.com>2009-10-30 20:03:09 +0000
committerNathan Sidwell <nathan@gcc.gnu.org>2009-10-30 20:03:09 +0000
commit7664c548e69ae4989d979fd1e44ced46be746e70 (patch)
tree044f46c5435a3ef9b2216d1bd9e8047b4e6eef8c /gcc
parentf0b150bad3f763afd74f3167ba4bcfbdbcb992a0 (diff)
downloadgcc-7664c548e69ae4989d979fd1e44ced46be746e70.zip
gcc-7664c548e69ae4989d979fd1e44ced46be746e70.tar.gz
gcc-7664c548e69ae4989d979fd1e44ced46be746e70.tar.bz2
linux-eabi.h (LINK_SPEC): BE8_LINK_SPEC added.
* config/arm/linux-eabi.h (LINK_SPEC): BE8_LINK_SPEC added. * config/arm/bpapi.h (BE8_LINK_SPEC): New define. (LINK_SPEC): BE_LINK_SPEC added. From-SVN: r153766
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/config/arm/bpabi.h4
-rw-r--r--gcc/config/arm/linux-eabi.h2
3 files changed, 10 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index fb1fcce..2ba51f2 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,9 @@
+2009-10-30 Daniel Gutson <dgutson@codesourcery.com>
+
+ * config/arm/linux-eabi.h (LINK_SPEC): BE8_LINK_SPEC added.
+ * config/arm/bpapi.h (BE8_LINK_SPEC): New define.
+ (LINK_SPEC): BE_LINK_SPEC added.
+
2009-10-30 Richard Guenther <rguenther@suse.de>
PR lto/41858
diff --git a/gcc/config/arm/bpabi.h b/gcc/config/arm/bpabi.h
index bc0c62f..8d3afbf 100644
--- a/gcc/config/arm/bpabi.h
+++ b/gcc/config/arm/bpabi.h
@@ -53,6 +53,8 @@
#define TARGET_FIX_V4BX_SPEC " %{mcpu=arm8|mcpu=arm810|mcpu=strongarm*|march=armv4:--fix-v4bx}"
+#define BE8_LINK_SPEC " %{mbig-endian:%{march=armv7-a|mcpu=cortex-a8|mcpu=cortex-a9:%{!r:--be8}}}"
+
/* Tell the assembler to build BPABI binaries. */
#undef SUBTARGET_EXTRA_ASM_SPEC
#define SUBTARGET_EXTRA_ASM_SPEC "%{mabi=apcs-gnu|mabi=atpcs:-meabi=gnu;:-meabi=5}" TARGET_FIX_V4BX_SPEC
@@ -65,7 +67,7 @@
#define BPABI_LINK_SPEC \
"%{mbig-endian:-EB} %{mlittle-endian:-EL} " \
"%{static:-Bstatic} %{shared:-shared} %{symbolic:-Bsymbolic} " \
- "-X" SUBTARGET_EXTRA_LINK_SPEC TARGET_FIX_V4BX_SPEC
+ "-X" SUBTARGET_EXTRA_LINK_SPEC TARGET_FIX_V4BX_SPEC BE8_LINK_SPEC
#undef LINK_SPEC
#define LINK_SPEC BPABI_LINK_SPEC
diff --git a/gcc/config/arm/linux-eabi.h b/gcc/config/arm/linux-eabi.h
index 780a504..fce1ed1 100644
--- a/gcc/config/arm/linux-eabi.h
+++ b/gcc/config/arm/linux-eabi.h
@@ -66,7 +66,7 @@
/* At this point, bpabi.h will have clobbered LINK_SPEC. We want to
use the GNU/Linux version, not the generic BPABI version. */
#undef LINK_SPEC
-#define LINK_SPEC LINUX_TARGET_LINK_SPEC
+#define LINK_SPEC LINUX_TARGET_LINK_SPEC BE8_LINK_SPEC
/* Use the default LIBGCC_SPEC, not the version in linux-elf.h, as we
do not use -lfloat. */