> -----Original Message----- > From: Albert ARIBAUD [mailto:albert.arib...@free.fr] > Sent: Wednesday, December 01, 2010 11:02 PM > To: Premi, Sanjeev > Cc: u-boot@lists.denx.de > Subject: Re: [U-Boot] [PATCH] ARMv7: Fix linker errors across > toolchain versions > > 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.
[sp] I did the same - but focused only on .rel.dyn and .bss > > 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. [sp] I am trying on this. Getting back to linker scripts after many years. But assuming that there is no way; I am still looking for an explanation on: 1) why the current metod produces different errors across different toolchain versions. 2) How does presence of one variable alone breaks the build? At least, compiler doesn't complain. Even moving it out of .bss by explicit initialization doesn't help. BTW, I verified that it is not used anywhere till end of board_init_f() - didn't go further. Should I? Can yo help me on these? ~sanjeev > > > ~sanjeev > > Amicalement, > -- > Albert. > _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot