Relative expressions and ASSERT

Daniel Jacobowitz dan@codesourcery.com
Wed Dec 22 12:22:00 GMT 2010


On Wed, Dec 22, 2010 at 11:42:58AM +1030, Alan Modra wrote:
> On Tue, Dec 21, 2010 at 11:05:36AM -0500, Daniel Jacobowitz wrote:
> > I'd use a new syntax for setting the compatibility version, because
> > if a program relies on the new behavior, then the linker script ought
> > to be rejected by an old linker.
> 
> I chose to use a symbol so that an old linker *could* use the script.
> At least with relatively simple scripts it should be possible to write
> a script that works with both old and new rules.

Don't these two statements go in opposite directions?  If you're going
to bother to make the script work with both rules, then you don't need
to request the new behavior.

-- 
Daniel Jacobowitz
CodeSourcery



More information about the Binutils mailing list