From: Wolfgang Denk <wd@denx.de>
To: "lew kenny" <zsuly@hotmail.com>
Cc: linuxppc-embedded@lists.linuxppc.org
Subject: Re: an error about "relocation truncated"
Date: Wed, 11 Aug 2004 17:14:49 +0200 [thread overview]
Message-ID: <20040811151454.82599C109F@atlas.denx.de> (raw)
In-Reply-To: Your message of "Wed, 11 Aug 2004 09:23:37 +0800." <BAY13-F16VKixJfhENB00038ac8@hotmail.com>
In message <BAY13-F16VKixJfhENB00038ac8@hotmail.com> you wrote:
>
> I'm porting the PPCboot2.0 to my ppc850 board.I just modified the Makefile,
PPCBoot is a dead project. Porting it to new boards is a waste of
time. Please use the successor project U-Boot instead.
Also, please post U-Boot related questions to the u-boot-users
mailing list. They are off topic here.
> config file,and the flash's code and head file with the template of board
> c2mon. But after I compile the code, there are some "relocation truncated"
> errors.
No. The primary error is here:
> lib_ppc/libppc.a(board.o): In function `board_init_r':
> /root/project/ppcboot-2.0.0/lib_ppc/board.c:896: undefined reference to
> `ide_init'
You understand what "undefined reference" means?
> At first, I think it may be caused by a low version number ompiler. Then I
Undefined references have little to do with the compiler version.
> changed the compiler to the last ELDK. But there are some new errors.
...
> {standard input}:4998: Error: Relocation cannot be done when using
> -mrelocatable
...
> I doubt that there maybe are some ploblems in the "ppcboot.lds". I am not
> sure of it, and I have no idea how to change it. It will be very
> appreciated if anyone give me some ideas.
Instead of spreading wild speculations you should start reading the
documentation, especially this section in the FAQ:
http://www.denx.de/twiki/bin/view/DULG/RelocationCannotBeDoneWhenUsingMrelocatable
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd@denx.de
If I don't document something, it's usually either for a good reason,
or a bad reason. In this case it's a good reason. :-)
- Larry Wall in <1992Jan17.005405.16806@netlabs.com>
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
prev parent reply other threads:[~2004-08-11 15:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-11 1:23 an error about "relocation truncated" lew kenny
2004-08-11 15:14 ` Wolfgang Denk [this message]
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=20040811151454.82599C109F@atlas.denx.de \
--to=wd@denx.de \
--cc=linuxppc-embedded@lists.linuxppc.org \
--cc=zsuly@hotmail.com \
/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 NNTP newsgroup(s).