From: "Anton Wöllert" <aw@emlix.com>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Re: compile u-boot with recent toolchain : symbols problem
Date: Thu, 23 Jun 2005 10:15:45 +0200 [thread overview]
Message-ID: <E1DlMsF-0005rm-RG@mailer.emlix.com> (raw)
I've got the same problem with binutils 2.16 and gcc 3.4.4. also binutils
2.16.91.0.1 doesn't work right.
> >
> > I used to compile U-Boot with ELDK, but I currently need to work with
> > newer toolchain :
> > - binutils-2.16
> > - gcc-3.4.3
>
> This looks line a binutils problem, then. May I ask why you have to
> use binutils-2.16 ?
May I ask you why it should not be used? How to recover bugs, if people just
use older software?
>
> And which exact board are we talking about?
>
> > The "__u_boot_cmd_start" symbol value, generated with this new
> > toolchain, is wrong (U-Boot crashes when relocating the command
> > table).
>
> Can you please provide exact data, like the differences between the
> System.map and the u-boot.map files when using binutils-2.16 and
> another, working version of binutils? [Please use the _same_ version
> of GCC for this comparison.]
>
> > There are two new sections between "__u_boot_cmd_start" and
> > ".u_boot_cmd" address :
> > - .data.rel.local
> > - .data.rel
>
> Can you please show exactly what happens?
The above, i couldn't acknowledge, but u-boot definitly hangs _after_
relocating to memory. it will dump 'Now running in RAM at .....'. But then it
hangs. After relocating, it tries to manually relocate the command table. But
that doesn't work. Don't know why, but with the patch it works.
Obviously
__u_boot_cmd_start = .;
.u_boot_cmd : { *(.u_boot_cmd) }
__u_boot_cmd_end = .;
and
__u_boot_cmd_start = ADDR(.u_boot_cmd);
.u_boot_cmd : { *(.u_boot_cmd) }
__u_boot_cmd_end = .;
should be the same. However, this should be a binutils bug or the linker
script voodoo that is done with the first script above isn't really valid.
Maybe .u_boot_cmd gets misalligned. Maybe i should try to DEBUG(&
__u_boot_cmd_start) in both (the patched and unpatched) versions to see,
where it points, or maybe objdump show more. Btw. this happens on the tqm8xx
board. Thanks to Vincent for recovering that, that saved me a lot of time...
kind regards
Anton W?llert
next reply other threads:[~2005-06-23 8:15 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-23 8:15 Anton Wöllert [this message]
2005-06-23 9:37 ` [U-Boot-Users] Re: compile u-boot with recent toolchain : symbols problem Wolfgang Denk
2005-06-23 18:47 ` Cedric VINCENT
2005-06-23 22:54 ` Wolfgang Denk
2005-06-24 20:28 ` Cedric VINCENT
2005-07-01 16:28 ` Cedric VINCENT
2006-03-12 17:29 ` Wolfgang Denk
2006-03-19 10:23 ` Cedric VINCENT
2005-06-23 10:00 ` Anton Wöllert
2005-06-23 10:51 ` Wolfgang Denk
2006-03-22 15:51 ` David Ho
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=E1DlMsF-0005rm-RG@mailer.emlix.com \
--to=aw@emlix.com \
--cc=u-boot@lists.denx.de \
/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