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

Timur Tabi timur at freescale.com
Mon Nov 6 20:54:56 CET 2006


Scott Wood wrote:

> The benefit is that bss-related bugs in the pre-RAM code go away and 
> stay away, and that ugliness such as having to specify __attribute__ 
> ((section ("data"))) whenever the value is zero also goes away.

For the record, the only use of "section (data)" is in the I2C code I just 
wrote.  And this code can be eliminated if we change i2c_read() and 
i2c_write() to take the bus number as a parameter.  Although I should we 
should implement that change, doing so would require changing 91 files.

-- 
Timur Tabi
Linux Kernel Developer @ Freescale




More information about the U-Boot mailing list