From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Wood Date: Mon, 06 Nov 2006 12:56:11 -0600 Subject: [U-Boot-Users] Why are some global vars part of the image, and some not? In-Reply-To: <454F8373.1000300@smiths-aerospace.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> Message-ID: <454F854B.9000402@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 Jerry Van Baren wrote: > In theory, yes. In practice, I have my doubts that it is workable, let > alone a better way. Writing "then the compiler would be the one that > zeros BSS" is easy, actually making it work may be tricky. It's a pretty simple linker script change, actually. Just move all of the lines within .bss {} into .data {}. Where do you see the difficulty coming from? -Scott