From: Kai Ruottu <karuottu@freenet.hut.fi>
To: "Pun H. Shiu" <ship@ece.gatech.edu>
Cc: èHôfæp <890436@itri.org.tw>, crossgcc@sourceware.cygnus.com
Subject: Re: How to make a gcc for MPC860 ?
Date: Sun, 08 Oct 2000 03:34:00 -0000 [thread overview]
Message-ID: <39E04E4F.56BDA80B@freenet.hut.fi> (raw)
In-Reply-To: <Pine.GSO.4.21.0010072206460.8821-200000@long.eecom.gatech.edu>
"Pun H. Shiu" wrote:
>
> I try that the the make process goes fine. My
> custom part of "configure" is
>
> --target=powerpc-eabi
> --prefix=/tmp/pun \
> --exec-prefix=/tmp/pun/H-i686-pc-linux-gnu \
>
> but I get the following error.
> /tmp/pun/H-i686-pc-linux-gnu/powerpc-eabi/bin/ld: warning: cannot
> find entry symbol _start; defaulting to 01800074
> /tmp/pun/H-i686-pc-linux-gnu/lib/gcc-lib/powerpc-eabi/2.95.2/libgcc.a(eabi.o)(.got2+0x8): undefined
> reference to `__SDATA_START__'
> /tmp/pun/H-i686-pc-linux-gnu/lib/gcc-lib/powerpc-eabi/2.95.2/libgcc.a(eabi.o)(.got2+0xc): undefined
> reference to `__SBSS_END__'
Please browse the message archive of this list, at least the recent ones like
the following:
>> I acn get as far as the test stage of the build then get an error message
>> about the newly built compiler not producing execututables.
>
> Please explain which kind of system you think the 'mipsel-r3000-elfl' to
> be ? Ok, a R3000-compatible CPU and little-endian ELF object format but
> what is the opsys or the I/O-structure in your board ? Where does your
> 'Hello World' write the message? And what is the memory layout for your
> executables?
>
> When you have these things clear, you perhaps will find the glue libraries
> for the supported MIPS-boards, select someone of them for the extra one for
> linking, besides only the 'libc.a', then select the linker script for the
> same board and get the memory layout from it. When everything is set for
> a known target, then the compiler can produce executables for it. The default
> settings are in the 'specs' file ('.../gcc/specs' during the build) and the
> essential specs are the '*link:' and the '*lib:'. To the first you add the
> linker script name and to the second the glue library name. Something like:
>
> ----------------------------- clip ----------------------------------------
> *link:
> %{G*} %{EB} %{EL} %{mips1} %{mips2} %{mips3} %{mips4} %{bestGnum} %{shared}
> %{non_shared} %(linker_endian_spec) -T idt.ld%s
>
> *lib:
> -lc -lidt -lc
>
> *libgcc:
> ----------------------------- clip ----------------------------------------
Some targets are fully defined, some are not. The m68k-*, mips*-* and powerpc-eabi
aren't, so you must use the stuff for some real target board for them.
You can link programs only for a known target.
Cheers, Kai
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sourceware.cygnus.com
next prev parent reply other threads:[~2000-10-08 3:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-09-26 23:08 沈惠如
2000-10-07 19:15 ` Pun H. Shiu
2000-10-08 3:34 ` Kai Ruottu [this message]
-- strict thread matches above, loose matches on Subject: below --
2000-09-23 3:20 How " 沈惠如
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=39E04E4F.56BDA80B@freenet.hut.fi \
--to=karuottu@freenet.hut.fi \
--cc=890436@itri.org.tw \
--cc=crossgcc@sourceware.cygnus.com \
--cc=ship@ece.gatech.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).