This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Relative expressions and ASSERT


On Tue, Dec 21, 2010 at 10:31:33PM -0500, Daniel Jacobowitz wrote:
> 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.

You're probably right.  I just wanted to make the feature easy to use
in the hope that people would tidy their old scripts, but I guess that
isn't so likely.

-- 
Alan Modra
Australia Development Lab, IBM


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]