This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
SH config/sh/crt*.asm files
- To: gcc-help at gcc dot gnu dot org
- Subject: SH config/sh/crt*.asm files
- From: Stephen Clarke <Stephen dot Clarke at st dot com>
- Date: Fri, 01 Jun 2001 11:28:29 -0700
- Organization: STMicroelectronics
I'm trying to understand the purpose of the file
config/sh/crt1.asm
This appears to be a bootstrap for an embedded system, and
seems to contain much the same as
newlib/libc/sys/sh/crt0.S
But when linking my app, sh-elf-gcc picks up the crt1.o created from
config/sh/crt1.asm rather than the crt0.o created from the newlib
crt0.S, even though it picks up other stuff from newlib.
I'm confused because I'd expect the bootstrap would (potentially) be
specific to a particular system and RTL, so gcc/config is (IMO) an
unlikely place to put it. And SH seems to be the only gcc target to
have an embedded bootstrap in its gcc/config directory.
Why is it done this way for SH?
Steve.
--
Stephen Clarke, Micro Cores & Development Tools, STMicroelectronics
Phone:1-408-922-4062, Fax:1-408-895-3069, mailto:Stephen.Clarke@st.com
Mail: STMicroelectronics, 1060 E. Brokaw Rd., San Jose, CA 95131.