Re: [PATCH v2 18/62] objtool: Fix x86 addend calculation

2025-06-04 Thread Josh Poimboeuf
On Mon, May 26, 2025 at 12:23:15PM +0200, Peter Zijlstra wrote: > On Fri, May 09, 2025 at 01:16:42PM -0700, Josh Poimboeuf wrote: > > On x86, arch_dest_reloc_offset() hardcodes the addend adjustment to > > four, but the actual adjustment depends on the relocation type. Fix > > that. > > > +s64 ar

Re: [PATCH v2 18/62] objtool: Fix x86 addend calculation

2025-05-26 Thread Peter Zijlstra
On Fri, May 09, 2025 at 01:16:42PM -0700, Josh Poimboeuf wrote: > On x86, arch_dest_reloc_offset() hardcodes the addend adjustment to > four, but the actual adjustment depends on the relocation type. Fix > that. > +s64 arch_insn_adjusted_addend(struct instruction *insn, struct reloc *reloc) > {

[PATCH v2 18/62] objtool: Fix x86 addend calculation

2025-05-09 Thread Josh Poimboeuf
On x86, arch_dest_reloc_offset() hardcodes the addend adjustment to four, but the actual adjustment depends on the relocation type. Fix that. Signed-off-by: Josh Poimboeuf --- tools/objtool/arch/loongarch/decode.c | 4 ++-- tools/objtool/arch/powerpc/decode.c | 4 ++-- tools/objtool/arch/x8