[U-Boot] arm: wrong Relocation and not cleared BSS

Wolfgang Denk wd at denx.de
Sat Oct 30 16:36:24 CEST 2010


Dear Albert ARIBAUD,

In message <4CCC1F6C.7040603 at 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


More information about the U-Boot mailing list