OSDN Git Service

objtool: Get rid of reloc->offset
authorJosh Poimboeuf <jpoimboe@kernel.org>
Tue, 30 May 2023 17:21:06 +0000 (10:21 -0700)
committerJosh Poimboeuf <jpoimboe@kernel.org>
Wed, 7 Jun 2023 17:03:21 +0000 (10:03 -0700)
commite4cbb9b81f1f7519c7ae3abda09cb15794022952
treeb70dff6bc5c62979ac59ecaf4b5f87ca36ad6821
parentbe9a4c116824c39720001db5bc45fe7528b26cff
objtool: Get rid of reloc->offset

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

With allyesconfig + CONFIG_DEBUG_INFO:

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

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