From: Wolfgang Denk Date: Sun, 31 Oct 2010 12:58:35 +0100 Subject: [U-Boot] arm: wrong Relocation and not cleared BSS In-Reply-To: <4CCD4C1C.2050603@ahsoftware.de> References: <4CCC18E7.8080708@ahsoftware.de> <4CCC1F6C.7040603@free.fr> <20101030143624.E6C701522C0@gemini.denx.de> <4CCD4C1C.2050603@ahsoftware.de> Message-ID: <20101031115835.83DC6EA47F@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Alexander Holler, In message <4CCD4C1C.2050603@ahsoftware.de> you wrote: > > > Zeroing of the BSS is a mandatory requirement. > > > Beeing curious, I've looked up that part in the C99 standard. Just to=20 > refresh our memories: > > ------------------------------------- > 6.7.8 > > 10 > > If an object that has automatic storage duration is not initialized > explicitly, its value is Wrong section. We are not talking about variables with "automatic storage" (which means they are allocated on the stack), but about _static_ variables. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Men will always be men -- no matter where they are. -- Harry Mudd, "Mudd's Women", stardate 1329.8