From: Wolfgang Denk Date: Mon, 05 Oct 2009 23:18:11 +0200 Subject: [U-Boot] [PATCH] relocation: Do not relocate NULL pointers. In-Reply-To: <1254773254.24664.657.camel@localhost.localdomain> References: <1253706706-30364-1-git-send-email-Joakim.Tjernlund@transmode.se> <1253708271.3968.11.camel@ptyser-laptop> <1253710639.3968.19.camel@ptyser-laptop> <20090923182314.1B317832E864@gemini.denx.de> <1254773254.24664.657.camel@localhost.localdomain> Message-ID: <20091005211811.369681005161@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 Peter Tyser, In message <1254773254.24664.657.camel@localhost.localdomain> you wrote: > > > 32 bit alignment of the BSS segment might not be sufficient. Be > > careful! > > I've tried a few ways to ensure the BSS isn't at address 0x0, and they > all seem to have their shortcomings. I'm currently leaning towards > doing something along the lines of the above, ie ORing 0x10 into the BSS > address. > > I had assumed 8 or 16 bit alignment of the BSS would be sufficient. > Could you give a little background on your warning above about 32 bit > alignment being insufficient? I don't know all flavours of Power machines, but gcc seems to align "double" on 64 bit boundaries. This makes me think it might be needed. 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 "355/113 -- Not the famous irrational number PI, but an incredible simulation!"