avr-chat
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-chat] linker builds file too big, is it a bug?


From: Erik Christiansen
Subject: Re: [avr-chat] linker builds file too big, is it a bug?
Date: Sat, 12 Feb 2011 01:37:55 +1100
User-agent: Mutt/1.5.17+20080114 (2008-01-14)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]