From mboxrd@z Thu Jan 1 00:00:00 1970 From: Timur Tabi Date: Mon, 06 Nov 2006 13:54:56 -0600 Subject: [U-Boot-Users] Why are some global vars part of the image, and some not? In-Reply-To: <454F9123.4050706@freescale.com> References: <20061104020417.69640352658@atlas.denx.de> <454F7440.5030709@freescale.com> <454F78D6.6020805@smiths-aerospace.com> <454F7A30.9030100@freescale.com> <454F8373.1000300@smiths-aerospace.com> <454F854B.9000402@freescale.com> <454F879E.9020803@smiths-aerospace.com> <454F9123.4050706@freescale.com> Message-ID: <454F9310.5040105@freescale.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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