diff options
author | Joel Sherrill <joel@rtems.org> | 2016-04-27 07:06:43 +0000 |
---|---|---|
committer | Sebastian Huber <sh@gcc.gnu.org> | 2016-04-27 07:06:43 +0000 |
commit | 727cbedf8b21e38a47da66c400d51a30d3a64c33 (patch) | |
tree | 55a0872f924497b9af4a4a81b533906b1d0cc7fc /gcc | |
parent | f702d1109089f133c1ceba49c94dabe2f2ab8850 (diff) | |
download | gcc-727cbedf8b21e38a47da66c400d51a30d3a64c33.zip gcc-727cbedf8b21e38a47da66c400d51a30d3a64c33.tar.gz gcc-727cbedf8b21e38a47da66c400d51a30d3a64c33.tar.bz2 |
[Microblaze] Redefine LINK_SPEC for RTEMS
gcc/
* config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
xilink.ld and flags not relevant to RTEMS.
From-SVN: r235465
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/microblaze/rtems.h | 7 |
2 files changed, 12 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 99b5e65..75367cb 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-04-27 Joel Sherrill <joel@rtems.org> + + * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid + xilink.ld and flags not relevant to RTEMS. + 2016-04-26 Zhouyi Zhou <yizhouzhou@ict.ac.cn> * toplev.c (backend_init_target): Avoid calling init_reload when using diff --git a/gcc/config/microblaze/rtems.h b/gcc/config/microblaze/rtems.h index 68aa381..56f3f70 100644 --- a/gcc/config/microblaze/rtems.h +++ b/gcc/config/microblaze/rtems.h @@ -23,3 +23,10 @@ along with GCC; see the file COPYING3. If not see builtin_define( "__rtems__" ); \ builtin_assert( "system=rtems" ); \ } while (0) + +/* Redefine to include only items relevant for RTEMS */ +#undef LINK_SPEC +#define LINK_SPEC "%{shared:-shared} -N -relax \ + %{mbig-endian:-EB --oformat=elf32-microblaze} \ + %{mlittle-endian:-EL --oformat=elf32-microblazeel} \ + %{mxl-gp-opt:%{G*}} %{!mxl-gp-opt: -G 0}" |