]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
ld: support most modifiers for printf() like vfinfo() format specifiers
authorJan Beulich <jbeulich@suse.com>
Fri, 28 Nov 2025 08:48:18 +0000 (09:48 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 28 Nov 2025 08:48:18 +0000 (09:48 +0100)
commit46871224c49722d408428f1e2f050d4c8a52cc4b
tree6ffd60b95a432429eecc738af9391e6b1daaf490
parent1f7e70ddd2c49dd5442b8873dd6ef29b0a10fdc3
ld: support most modifiers for printf() like vfinfo() format specifiers

Not doing so is pretty error prone: One needs to distinguish e.g.
->einfo() and alike invocations out of libbfd from _bfd_error_handler()
ones. Omit support for * though for now, as that would be more intrusive
to implement.

Use this then to disambiguate x86'es ISA level diagnostic of unknown bits,
where decimal vs hex isn't immediately clear.
bfd/elfxx-x86.c
ld/ldmisc.c
ld/testsuite/ld-x86-64/pr31868a.l
ld/testsuite/ld-x86-64/pr31868b.l
ld/testsuite/ld-x86-64/pr31868c.l