objtool: Get rid of reloc->addend
authorJosh Poimboeuf <jpoimboe@kernel.org>
Tue, 30 May 2023 17:21:08 +0000 (10:21 -0700)
committerJosh Poimboeuf <jpoimboe@kernel.org>
Wed, 7 Jun 2023 17:03:23 +0000 (10:03 -0700)
commit0696b6e314dbe4bd2f24d5e749469f57ea095a9f
tree8f14e562b2d87c27a829295ca14964f346316132
parentfcee899d2794319c9dbeb7b877b0c4ac92f5dd16
objtool: Get rid of reloc->addend

Get the addend from the embedded GElf_Rel[a] struct.

With allyesconfig + CONFIG_DEBUG_INFO:

- Before: peak heap memory consumption: 42.10G
- After:  peak heap memory consumption: 40.37G

Link: https://lore.kernel.org/r/ad2354f95d9ddd86094e3f7687acfa0750657784.1685464332.git.jpoimboe@kernel.org
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
tools/objtool/arch/x86/decode.c
tools/objtool/arch/x86/special.c
tools/objtool/check.c
tools/objtool/elf.c
tools/objtool/include/objtool/elf.h
tools/objtool/special.c