[U-Boot-Users] Why are some global vars part of the image, and some not?

Timur Tabi timur at freescale.com
Sat Nov 4 02:38:43 CET 2006


Wolfgang Denk wrote:

> Since you complained about a problem where I could not  see  any  (at
> least  none  that  was not clearly documented) I was not sure if your
> expectation of "global" was correct, i. e. if you were aware  of  the
> differences  between  "global"  on  file level versus "global" in the
> meaning of "external" to the linker.

I was aware, I just didn't think it mattered for the issue that I was 
seeing.

> Then you must make sure that even  zero-initialized  data  don't  get
> placed in bss, and your approach was correct.

What about modifying the linker script so that all of bss is merged into 
the image, i.e. treat it like 'data'?





More information about the U-Boot mailing list