On Fri, Feb 11, 2011 at 01:25:39PM +0100, Massimiliano Cialdi wrote: > > I know that .data is to be considered belonging to sram, but its initial > image is hold in flash, and according to my opinion this fact must be > take into account, otherwise the binary may not work (as happened to my > real project)
Does your linker script still have the usual line: .data : AT (ADDR (.text) + SIZEOF (.text)) That sets the LMA for .data to follow on from .text, so ld really ought to be checking that this also fits into the output section for .text (i.e. text) just as you expect. As the hour is approaching 2 a.m. here, I may regret in the morning saying that it definitely is a bug, but it doesn't look good. Do you have an old version of ld to hand, for comparison? The binutils maintainers should be able to be won over without a demonstrated regression, but it could possibly save some discussion. It may possibly be avr-specific code which is the problem though, and that puts it back in our camp. (Though I can't immediately see a case for that.) Erik _______________________________________________ AVR-chat mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/avr-chat
