From: Wolfgang Denk Date: Sat, 30 Oct 2010 16:36:24 +0200 Subject: [U-Boot] arm: wrong Relocation and not cleared BSS In-Reply-To: <4CCC1F6C.7040603@free.fr> References: <4CCC18E7.8080708@ahsoftware.de> <4CCC1F6C.7040603@free.fr> Message-ID: <20101030143624.E6C701522C0@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 Albert ARIBAUD, In message <4CCC1F6C.7040603@free.fr> you wrote: > > Wait a minute. No parts of the code assume BSS is *cleared*, or at least > no pat of the should *should ever* assume that. BSS is not "zeroed > data", it is "uninitialized data". BSS _is_ zeroed data. This is a very basic assumption of the C runtime. > BSS is not *required* to be zero. It is zeroed out as a courtesy, but > No, you are wrong here. Zeroing of the BSS is a mandatory requirement. 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 Doubt is a pain too lonely to know that faith is his twin brother. - Kahlil Gibran