]> git.ipfire.org Git - thirdparty/linux.git/commit
objtool: Shrink reloc->sym_reloc_entry
authorJosh Poimboeuf <jpoimboe@kernel.org>
Tue, 30 May 2023 17:21:10 +0000 (10:21 -0700)
committerJosh Poimboeuf <jpoimboe@kernel.org>
Wed, 7 Jun 2023 17:03:25 +0000 (10:03 -0700)
commit890f10a433f51f95eccaec13d46dde769ccc113b
treee432aa71f46e517b431b879548cee3926cc40b24
parentbe2f0b1e12644c956a347d7fde93c2ffe9cdb1af
objtool: Shrink reloc->sym_reloc_entry

Convert it to a singly-linked list.

With allyesconfig + CONFIG_DEBUG_INFO:

- Before: peak heap memory consumption: 38.64G
- After:  peak heap memory consumption: 36.89G

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