This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: gcc, crt0, and linker scripts...
- To: crossgcc at sourceware dot cygnus dot com, gcc-help at gcc dot gnu dot org
- Subject: Re: gcc, crt0, and linker scripts...
- From: "Russ.Shaw" <russell at webaxs dot net>
- Date: Wed, 02 Aug 2000 23:10:37 +1000
- References: <001101c01fe1$7e10b260$58210b0a@huawei.com.cn> <3987B6DA.61538FBF@webaxs.net> <39880727.84586D00@webaxs.net>
I've worked it all out now :)
"Russ.Shaw" wrote:
>
> Hi all,
>
> I'm using gcc-2.95.5 configured as a cross-compiler for the
> hitachi H8/300H cpu core. I'm using mandrake-7.0.
>
> I want to use h8300-hms-gcc to generate code for my own system.
>
> However, what does gcc use for a linker script? I need to tell
> gcc about my eprom memory map etc.
>
> I could get gcc to use my own script using -Wl,T<myscript>, but
> i'll still get linker errors because the output section names
> need to be compatible with the supplied crt0 start-up file.
>
> I can't use my own startup file, because the standard C libraries
> refer to symbols such as _end in crt0.o.
>
> So what is the 'normal' procedure for configuring a cross-gcc to
> custom hardware? Also, in my install, i have these linker scripts:
>
> /usr/local/h8300-hms/lib/ldscripts/h8300h.x
> h8300h.xbn
> h8300h.xn
> h8300h.xr
> h8300h.xu
>
> I don't know if gcc knows about these or not.
>
--
*******************************************
* Russell Shaw, B.Eng, M.Eng(Research) *
* email: russell@webaxs.net *
* Australia *
*******************************************