From: Wolfgang Denk Date: Wed, 07 Oct 2009 08:53:36 +0200 Subject: [U-Boot] [PATCH 0/2] Make sure 85xx bss doesn't start at 0x0 In-Reply-To: <1254872619.24664.3159.camel@localhost.localdomain> References: <1254783670-21301-1-git-send-email-ptyser@xes-inc.com> <20091006073212.F1E664C021@gemini.denx.de> <1254830475.22896.43.camel@ptyser-laptop> <20091006140136.E9EE51824EB6@gemini.denx.de> <1DE23DE0-B901-4E15-845C-43889EE0B178@kernel.crashing.org> <1254839043.24664.1890.camel@localhost.localdomain> <20091006152210.37EB2F15B3E@gemini.denx.de> <1254843932.24664.2083.camel@localhost.localdomain> <20091006175100.B4C12F15B3E@gemini.denx.de> <1254852529.24664.2383.camel@localhost.localdomain> <4ACBA9BA.809@comcast.net> <1254862383.24664.2742.camel@localhost.localdomain> <4ACBC5E4.2040809@comcast.net> <1254870618.24664.3061.camel@localhost.localdomain> <20091006232500.2DE06E8B335@gemini.denx.de> <1254872619.24664.3159.camel@localhost.localdomain> Message-ID: <20091007065336.9AC54E8B31E@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 <1254872619.24664.3159.camel@localhost.localdomain> you wrote: > > > Right, that's the current situation. > > > > My suggestion was NOT to put the bss at a fixed _offset_ to the > > U-Boot image, but to a fixed absolute address. My hope is that this > > might simplify the linker scripts at the cost of adding a little code > > to the relocation routine - for addresses in the bss we would have to > > add a different relocation offset. > > I think I see what you're getting at. If we have a bss-specific fixup > routine I don't give a hoot where the bss is located at link time. Its > just that that bss-aware fixup routine doesn't exist right now:) Right!!! Now you got it. Ufff... > It seems like a clean solution. Adding a bss-aware fixup routine or > putting the bss after the U-Boot image both seem good to me. The > bss-aware fixup routine has a clearer readelf output and slightly more > complicated code while the bss-after-uboot change has a misleading > readelf output and simpler code. In any case I'd give a thumbs up to > either of them. My vote is for the first, because otherwise we will run into situations again and again where users and/or the linker get confused about overlapping sections and/or sections wrapping around the physical end of address space. 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 "Maintain an awareness for contribution -- to your schedule, your project, our company." - A Group of Employees