summaryrefslogtreecommitdiff
path: root/tools/4.11
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2013-03-10 14:31:57 +1100
committerChris Johns <chrisj@rtems.org>2013-03-10 14:31:57 +1100
commit5749230cbdbfdd9958a588f2d6cc38d3465ad15b (patch)
tree3bb476cb8780a308261e7fe59c0fcbc21d4a2124 /tools/4.11
parent0e900001d5e2c5fb4144ed7995e2f05b84b150be (diff)
Regerated version of Joel's patch so patch -p1 works.
Diffstat (limited to 'tools/4.11')
-rw-r--r--tools/4.11/gcc/microblaze/gcc-4.7.2-microblaze-ldscript-2.diff18
1 files changed, 18 insertions, 0 deletions
diff --git a/tools/4.11/gcc/microblaze/gcc-4.7.2-microblaze-ldscript-2.diff b/tools/4.11/gcc/microblaze/gcc-4.7.2-microblaze-ldscript-2.diff
new file mode 100644
index 0000000..40965e7
--- /dev/null
+++ b/tools/4.11/gcc/microblaze/gcc-4.7.2-microblaze-ldscript-2.diff
@@ -0,0 +1,18 @@
+--- gcc-4.7.2/gcc/config/microblaze/rtems.h.orig 2013-03-10 14:00:19.000000000 +1100
++++ gcc-4.7.2/gcc/config/microblaze/rtems.h 2013-03-10 14:27:46.000000000 +1100
+@@ -23,3 +23,15 @@
+ builtin_define( "__rtems__" ); \
+ builtin_assert( "system=rtems" ); \
+ } while (0)
++
++/* Use the default */
++#undef LINK_GCC_C_SEQUENCE_SPEC
++
++/* Extra switches sometimes passed to the linker. */
++/* -xl-mode-xmdstub translated to -Zxl-mode-xmdstub -- deprecated. */
++/* RTEMS: Remove use of xilinx.ld but keep other parts for compatibility */
++#undef LINK_SPEC
++#define LINK_SPEC "%{shared:-shared} -N -relax \
++ %{Zxl-mode-xmdstub:-defsym _TEXT_START_ADDR=0x800} \
++ %{mxl-mode-xmdstub:-defsym _TEXT_START_ADDR=0x800} \
++ %{mxl-gp-opt:%{G*}} %{!mxl-gp-opt: -G 0}"