[U-Boot-Users] .bss segment problem
Wolfgang Denk
wd at denx.de
Wed Jun 21 22:51:10 CEST 2006
In message <BAY105-F75F7231B24C7923053D5E8E840 at phx.gbl> you wrote:
>
> >"scd_modbuf" is HUGE - 28 MB!
> hmm, yeah i see now the address are wrapping around.
> scd_modbuf is a file buffer. i shrunk it to 1 MB which had no effect.
Still too big? I strongly recommend to carefully study the linker map
file.
> 1) I print the address the of pktbuf_i and pktbuf_raw in line B, which are
> the same
> even after relocation. should it be same address ? I would think the
> addres sould change. is that right ?
I don't care about this as long as there are other, serious problems
with your configuration.
> 2) Also another interesting think i did ... with keeping the scd_modbuf to
> 28 MB,
> but changing the way the struct is initialized. Diffrent from LINES X.
It makes IMHO no sense to statically allocate 28 MB of data in the
U-Boot image.
> this change make everythink to work. Any idea ?. Seems like a compiler being
> finiky.
No, seems like you don't care about the resulting memory map and the
consequences thereof.
> what do you think ?
Fix your memory map. Don't statically allocate huge buffers, and if
you don, then at least not without adjusting the memory map.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
I program, therefore I am.
More information about the U-Boot
mailing list