diff mbox

Commit: M32R: Build crtinit.o and crtfini.o

Message ID 87poq9mx1y.fsf@redhat.com
State New
Headers show

Commit Message

Nick Clifton July 19, 2016, 4:07 p.m. UTC
Hi Guys,

  I am applying the patch below to fix a long standing snafu for the
  m32r target where the files crtinit.o and crtfini.o were not being
  built along with the rest of libgcc.

  Tested with no regressions and a lot of test case fixes using an
  m32r-elf toolchain.

Cheers
  Nick

libgcc/ChangeLog
2016-07-19  Nick Clifton  <nickc@redhat.com>

	* config.host (m32r): Add m32r/t-m32r to tmake_file.
	Add crtinit.o and crtfini.o to extra_parts.
diff mbox

Patch

Index: libgcc/config.host
===================================================================
--- libgcc/config.host	(revision 238477)
+++ libgcc/config.host	(working copy)
@@ -787,7 +787,8 @@ 
         tmake_file="lm32/t-lm32 lm32/t-uclinux t-libgcc-pic t-softfp-sfdf t-softfp"
 	;;	
 m32r-*-elf*)
-	tmake_file=t-fdpbit
+	tmake_file="$tmake_file m32r/t-m32r t-fdpbit"
+	extra_parts="$extra_parts crtinit.o crtfini.o"
  	;;
 m32rle-*-elf*)
 	tmake_file=t-fdpbit