diff options
author | Chris Johns <chrisj@rtems.org> | 2013-03-10 12:27:22 +1100 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2013-03-10 12:27:22 +1100 |
commit | 25e43e17a73a7fc98c7444918274f4fd02abc3b6 (patch) | |
tree | 98e653d38f934af9a61f3a79c9f12d03e926069a /tools/4.11 | |
parent | df78032098a95d954e84a94fbf0ded2989f1da45 (diff) |
Microblaze gcc-4.7.2 patch from Joel.
Diffstat (limited to 'tools/4.11')
-rw-r--r-- | tools/4.11/gcc/microblaze/rtems-gcc-microblaze-ldscript-1.diff | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tools/4.11/gcc/microblaze/rtems-gcc-microblaze-ldscript-1.diff b/tools/4.11/gcc/microblaze/rtems-gcc-microblaze-ldscript-1.diff new file mode 100644 index 0000000..cdbbaed --- /dev/null +++ b/tools/4.11/gcc/microblaze/rtems-gcc-microblaze-ldscript-1.diff @@ -0,0 +1,20 @@ +Index: gcc/config/microblaze/rtems.h +=================================================================== +--- gcc/config/microblaze/rtems.h (revision 196028) ++++ gcc/config/microblaze/rtems.h (working copy) +@@ -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}" |