From mboxrd@z Thu Jan 1 00:00:00 1970 From: Albert ARIBAUD Date: Wed, 01 Dec 2010 18:32:03 +0100 Subject: [U-Boot] [PATCH] ARMv7: Fix linker errors across toolchain versions In-Reply-To: References: <1291216634-7510-1-git-send-email-premi@ti.com> <4CF68230.7060107@free.fr> Message-ID: <4CF68693.1050406@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 01/12/2010 18:19, Premi, Sanjeev a ?crit : >> Nak -- what we want to overlay is .bss on one hand, and >> .rel.dyn *plus* >> .dynsym on the other hand; OVERLAY { ... } does not allow this. > > [sp] From the earlier discussion, I inferred the overlay was supposed > to be .rel.dyn and .bss. That's because I avoid saying " .rel.dyn plus .dynsym" and just go for short ".rel.dyn" instead. Sorry for that. > Let me get the ".rel.dyn + .dynsym" overlay with ".bss". > If it works across compiler versions would that be okay? Getting ".rel.dyn + .dynsym" overlay with ".bss" is exactly what the current linker file does, by emitting .rel.dyn, then .dynsym, then overlaying .bss back at the start of .rel.dyn. Look up a readelf -a of ./u-boot and see where each section starts and ends. If you find another way to do this overlay yet end up producing a different binary, I'll be interested in the result, but I honestly don't think you will find any. > ~sanjeev Amicalement, -- Albert.