This is the mail archive of the
mailing list for the binutils project.
Re: Dealing with multiple gas versions
>>> On 12.10.11 at 16:14, Alan Modra <email@example.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).
> 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...