Re: [PATCH v6 03/30] objtool: Disassemble code with libopcodes instead of running objdump
From: Maciej W. Rozycki
Date: Tue Dec 09 2025 - 17:25:37 EST
On Tue, 9 Dec 2025, Alexandre Chartre wrote:
> > Bisect log is attached. I see the problem with gcc 11.4.0, 13.3.0, and
> > 14.3.0. I tried with both Ubuntu 22.04 and 24.04.
>
> This sounds like a configuration issue depending on the binutils version; in
> particular the setting of DISASM_INIT_STYLED (although that's supposed to be
> automatically configured by tools/objtool/Makefile).
I only came across these patches now.
As attractive as it may seem how is this stuff supposed to fly given that
binutils internal libraries promise no stable API to out-of-tree software.
The interfaces can change anytime, just as it is with our internals.
Wouldn't it make sense to improve objdump instead so as to provide the
features required?
Also is it actually legal to link objtool and libopcodes together, given
that they are GPLv2 and GPLv3 respectively?
FWIW asking as one of the binutils contributors and port maintainers.
Maciej