Bug 53314 - m32r-rtems does not provide crtinit.o and crtfini.o
Summary: m32r-rtems does not provide crtinit.o and crtfini.o
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: target (show other bugs)
Version: 4.7.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-10 22:13 UTC by Joel Sherrill
Modified: 2015-01-02 22:36 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joel Sherrill 2012-05-10 22:13:43 UTC
Unfortunately libgcc is not a component to select. :(

The extra_parts line was lost in the move of libgcc configuration to its own directory.

m32r-*-rtems*)
	tmake_file="$tmake_file m32r/t-m32r t-fdpbit"
	extra_parts="$extra_parts crtinit.o crtfini.o"
	;;

Is this OK for the 4.7 branch and the head? RTEMS builds using this on the head.

diff --git a/libgcc/config.host b/libgcc/config.host
index 14c705b..b79f321 100644
--- a/libgcc/config.host
+++ b/libgcc/config.host
@@ -679,6 +682,7 @@ m32r-*-elf*)
        ;;
 m32r-*-rtems*)
        tmake_file="$tmake_file m32r/t-m32r t-fdpbit"
+       extra_parts="$extra_parts crtinit.o crtfini.o"
        ;;
 m32rle-*-elf*)
        tmake_file=t-fdpbit
Comment 1 Joel Sherrill 2012-05-16 20:38:44 UTC
Forgot the ChangeLog entry.

2012-05-16  Joel Sherrill <joel.sherrill@oarcorp.com>

    * config.host (m32r-*-rtems*): Include crtinit.o and crtfinit.o
    as extra_parts.
Comment 2 Joel Sherrill 2015-01-02 22:36:42 UTC
I committed a fix for this in 2012 but this PR didn't get closed.