public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] Re: compile u-boot with recent toolchain : symbols problem
@ 2005-06-23  8:15 Anton Wöllert
  2005-06-23  9:37 ` Wolfgang Denk
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Anton Wöllert @ 2005-06-23  8:15 UTC (permalink / raw)
  To: u-boot

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2006-03-22 15:51 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-23  8:15 [U-Boot-Users] Re: compile u-boot with recent toolchain : symbols problem Anton Wöllert
2005-06-23  9:37 ` 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox