diff options
author | Jan Beulich <jbeulich@suse.com> | 2025-07-04 10:41:34 +0200 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2025-07-04 10:41:34 +0200 |
commit | 7b40f4c6587c04794d08e805eb17c61c629ab662 (patch) | |
tree | 6f09741d80984b9f9c898f067d238f6e6f917030 /gdb/python/python.c | |
parent | 52be9c1ba31dc509641db681c5bdb607b9230192 (diff) | |
download | binutils-7b40f4c6587c04794d08e805eb17c61c629ab662.zip binutils-7b40f4c6587c04794d08e805eb17c61c629ab662.tar.gz binutils-7b40f4c6587c04794d08e805eb17c61c629ab662.tar.bz2 |
gas: add a means to programmatically determine the assembler version
It has been more than once that I would have wanted to have a way to
know the gas version in assembly sources, perhaps for use with .if. Add
such a pre-defined symbol, introducing the common pattern GAS(<symbol>)
for any such symbols. The use of parentheses is to keep the risk of
collisions with users' symbols as low as possible. (Possible future
arch-specific symbols may want to use GAS(<arch>:<symbol>).)
Similarly permit determining whether the assembler is a released
version. The exact value probably isn't of much use, it's more the
defined-ness that one might care about. Yet the symbol needs to have
some value anyway.
While by default pre-defined symbols won't be emitted to the symbol
table, introduce -emit-local-absolute to allow requesting this. Re-
purpose flag_strip_local_absolute to become tristate, with a negative
value indicating to also emit pre-defined symbols.
Diffstat (limited to 'gdb/python/python.c')
0 files changed, 0 insertions, 0 deletions