Dealing with multiple gas versions

Alan Modra amodra@gmail.com
Wed Oct 12 21:05:00 GMT 2011


On Wed, Oct 12, 2011 at 03:48:03PM +0100, Jan Beulich wrote:
> >>> On 12.10.11 at 16:14, Alan Modra <amodra@gmail.com> wrote:
> > So, predefined symbols like .gasversion.
> > a) must pass .ifdef
> > b) should not cause any existing assembly to fail, even if it sets
> >    .gasversion. via .equiv, which normally fails if the symbol is
> >    already defined.
> > c) should not appear in the output symbol table, unless the symbol
> >    is redefined.
> 
> I'm not sure - if local absolute symbols get emitted, including this one
> should be fine (and could serve as a reference in an object to tell which
> assembler version was used - other assemblers do so too I believe).

An extra symbol causes testsuite failures.

> > a) excludes using tricks like md_parse_name
> > b) and (c) together are a pain.
> > 
> > Here's a solution.
> 
> That doesn't look that much like a pain...

You didn't see all the wrong approaches I tried.  ;-)

-- 
Alan Modra
Australia Development Lab, IBM



More information about the Binutils mailing list