
19 Sep
2007
19 Sep
'07
8:11 p.m.
In message Pine.LNX.4.64.0709191703480.3390@localhost.localdomain you wrote:
I'm working on booting my little toy board based on mpc8248 with u-boot. When debugging the startup code, I found that u-boot-1.1.6/common/dlmalloc.c::av_[] is relocated during calling to
Why are you using such ancient code?
relocate_code. The question is, how can the code after the relocation, says malloc_bin_reloc, reference av_[]?
Just as it was before. Kust thatthe addresses are now relocated.
I suppose that av_[] is "static" and the symbol will be stripped when u-boot.bin is generated.
Don't suppose things. Verify them.
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
Never worry about theory as long as the machinery does what it's
supposed to do. - R. A. Heinlein