* Re: gcc, crt0, and linker scripts...
[not found] ` <39880727.84586D00@webaxs.net>
@ 2000-08-02 6:09 ` Russ.Shaw
0 siblings, 0 replies; 2+ messages in thread
From: Russ.Shaw @ 2000-08-02 6:09 UTC (permalink / raw)
To: crossgcc, gcc-help
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 *
*******************************************
^ permalink raw reply [flat|nested] 2+ messages in thread
[parent not found: <965190972.29952.ezmlm@gcc.gnu.org>]
* Library and linker errors
[not found] <965190972.29952.ezmlm@gcc.gnu.org>
@ 2000-08-01 21:46 ` Russ.Shaw
2000-08-02 4:34 ` gcc, crt0, and linker scripts Russ.Shaw
0 siblings, 1 reply; 2+ messages in thread
From: Russ.Shaw @ 2000-08-01 21:46 UTC (permalink / raw)
To: gcc-help
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 found that h8300-hms-gcc gets its library files from:
/usr/local/h8300-hms/lib/libc.a
libg.a
libm.a
libiberty.a
and
/usr/local/lib/h8300-hms/libgcc.a (iirc)
However, i get lots of linker errors like:
/usr/local/h8300-hms/lib/libg.a(strtol.o)(.text+0xfa):strtol.c:
undefined reference to '__umodsi3'
/usr/local/h8300-hms/lib/libg.a(strtol.o)(.text+0x10a):strtol.c:
undefined reference to '__udivsi3'
/usr/local/h8300-hms/lib/libg.a(strtol.o)(.text+0x152):strtol.c:
undefined reference to '__umulsi3'
I can't find where __umodsi3 etc are defined. In my makefile, i'm
linking ld using -lgcc -liberty -lg -lc -lm.
--
*******************************************
* Russell Shaw, B.Eng, M.Eng(Research) *
* email: russell@webaxs.net *
* Australia *
*******************************************
^ permalink raw reply [flat|nested] 2+ messages in thread
* gcc, crt0, and linker scripts...
2000-08-01 21:46 ` Library and linker errors Russ.Shaw
@ 2000-08-02 4:34 ` Russ.Shaw
0 siblings, 0 replies; 2+ messages in thread
From: Russ.Shaw @ 2000-08-02 4:34 UTC (permalink / raw)
To: gcc-help
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 *
*******************************************
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-08-02 6:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <001101c01fe1$7e10b260$58210b0a@huawei.com.cn>
[not found] ` <3987B6DA.61538FBF@webaxs.net>
[not found] ` <39880727.84586D00@webaxs.net>
2000-08-02 6:09 ` gcc, crt0, and linker scripts Russ.Shaw
[not found] <965190972.29952.ezmlm@gcc.gnu.org>
2000-08-01 21:46 ` Library and linker errors Russ.Shaw
2000-08-02 4:34 ` gcc, crt0, and linker scripts Russ.Shaw
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).