We appear to have erroneously set 'extra_parts' in nios2-linux libgcc,
to include the crti.o/crtn.o files intended for nios2 EABI. This still
largely worked, which is why we haven't noticed it till now, expect some
features like gprof profiling wasn't properly set up.

This patch removes the extra_parts setting for nios2-linux libgcc; now
crti.o/crtn.o links to the correct ones provided by glibc.

Chung-Lin

2015-03-25  Chung-Lin Tang  <clt...@codesourcery.com>

        libgcc/
        * config.host (nios2-*-linux*): Remove 'extra_parts' setting.
Index: config.host
===================================================================
--- config.host	(revision 221651)
+++ config.host	(working copy)
@@ -943,7 +943,6 @@ nds32*-elf*)
 	;;
 nios2-*-linux*)
 	tmake_file="$tmake_file nios2/t-nios2 nios2/t-linux t-libgcc-pic t-slibgcc-libgcc"
-	extra_parts="$extra_parts crti.o crtn.o"
 	md_unwind_header=nios2/linux-unwind.h
 	;;
 nios2-*-*)

Reply via email to