From: sh Date: Wed, 27 Apr 2016 07:06:43 +0000 (+0000) Subject: [Microblaze] Redefine LINK_SPEC for RTEMS X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b7a4b2155691132a4d4a4b6df57e802dd1789a51;p=thirdparty%2Fgcc.git [Microblaze] Redefine LINK_SPEC for RTEMS gcc/ * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid xilink.ld and flags not relevant to RTEMS. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@235465 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 99b5e65495ef..75367cbd9ce8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2016-04-27 Joel Sherrill + + * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid + xilink.ld and flags not relevant to RTEMS. + 2016-04-26 Zhouyi Zhou * 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 68aa381b370a..56f3f7087d51 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}"