From mboxrd@z Thu Jan 1 00:00:00 1970 From: Timur Tabi Date: Fri, 03 Nov 2006 19:38:43 -0600 Subject: [U-Boot-Users] Why are some global vars part of the image, and some not? In-Reply-To: <20061104003140.C65BF352658@atlas.denx.de> References: <20061104003140.C65BF352658@atlas.denx.de> Message-ID: <454BEF23.1020909@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 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'?