aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/py-lazy-string.c
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2025-07-04 10:41:34 +0200
committerJan Beulich <jbeulich@suse.com>2025-07-04 10:41:34 +0200
commit7b40f4c6587c04794d08e805eb17c61c629ab662 (patch)
tree6f09741d80984b9f9c898f067d238f6e6f917030 /gdb/python/py-lazy-string.c
parent52be9c1ba31dc509641db681c5bdb607b9230192 (diff)
downloadbinutils-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/py-lazy-string.c')
0 files changed, 0 insertions, 0 deletions