This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RFA: Fix use of extra_objs when configuring tilepro-linux and tilegx-linux


Hi Walter,

  The tilepro-gnu-linux and tilegx-gnu-linux currently fail to build in
  the FSF mainline sources because of:

    libbackend.a(tilepro.o):(.data+0x2e4): undefined reference to `linux_android_has_ifunc_p()'

  This happens because the entries for tilegx-linux and tilepro-linux in 
  config.gcc override the definition of extra_objs, rather than
  extending it, thus loosing the inclusion of linux_android.o into
  libbackend.a.

  I fixed the problem with the patch below and was able to build both
  toolchains.  OK to apply ?

Cheers
  Nick

gcc/ChangeLog
2013-04-21  Nick Clifton  <nickc@redhat.com>

	* config.gcc (tilegx-linux): Extend extra_objs rather than
	overwriting it.
	(tilepro-linux): Likewise.

Index: gcc/config.gcc
===================================================================
--- gcc/config.gcc      (revision 198115)
+++ gcc/config.gcc      (working copy)
@@ -2573,7 +2573,7 @@
 tilegx-*-linux*)
        tm_file="elfos.h gnu-user.h linux.h glibc-stdint.h tilegx/linux.h ${tm_file}"
         tmake_file="${tmake_file} tilegx/t-tilegx"
-       extra_objs="mul-tables.o"
+       extra_objs="${extra_objs} mul-tables.o"
        c_target_objs="${c_target_objs} tilegx-c.o"
        cxx_target_objs="${cxx_target_objs} tilegx-c.o"
        extra_headers="feedback.h"
@@ -2581,7 +2581,7 @@
 tilepro-*-linux*)
        tm_file="elfos.h gnu-user.h linux.h glibc-stdint.h tilepro/linux.h ${tm_file}"
         tmake_file="${tmake_file} tilepro/t-tilepro"
-       extra_objs="mul-tables.o"
+       extra_objs="${extra_objs} mul-tables.o"
        c_target_objs="${c_target_objs} tilepro-c.o"
        cxx_target_objs="${cxx_target_objs} tilepro-c.o"
        extra_headers="feedback.h"


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]