From mboxrd@z Thu Jan 1 00:00:00 1970 From: Albert ARIBAUD Date: Sun, 31 Oct 2010 13:21:14 +0100 Subject: [U-Boot] arm: wrong Relocation and not cleared BSS In-Reply-To: <20101031115835.83DC6EA47F@gemini.denx.de> References: <4CCC18E7.8080708@ahsoftware.de> <4CCC1F6C.7040603@free.fr> <20101030143624.E6C701522C0@gemini.denx.de> <4CCD4C1C.2050603@ahsoftware.de> <20101031115835.83DC6EA47F@gemini.denx.de> Message-ID: <4CCD5F3A.5060502@free.fr> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Le 31/10/2010 12:58, Wolfgang Denk a ?crit : > 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. Actually I think this is the right section (and the only one to deal with initialization IIUC); is has indeed this one sentence about automatic objects, but then the following is about static objects: "[...] If an object that has static storage duration is not initialized explicitly, then: [...]" > Best regards, > > Wolfgang Denk Amicalement, -- Albert.