gnupic: Re: [gnupic] gplink dead section optimization
Subject:
Re: [gnupic] gplink dead section optimization
From:
David Willmore ####@####.####
Date:
24 May 2005 17:04:19 +0100
Message-Id: <200505241603.j4OG33el024482@localhost.localdomain>
> I have added a new optimization to gplink. Dead sections are removed
> when the optimization level is 2 or higher. A dead section is any
> section that doesn't have relocations pointing to its symbols. This
> means the code or data in the section is never accessed. This
> optimization removes the section and its symbols to reduce program and
> data memory. This optimization will not remove any absolute sections.
>
> Preliminary tests are working well. The code is in cvs. I need to
> decide if more exceptions should be allowed. For example, don't remove
> sections in protected memory. I am open to any suggestions.
Is there a way to override this on a per segment fashon? What if one
uses a segment to store the copyright message--which may never be
referenced--and this removes it. Oops.
Cheers,
David