]> git.ipfire.org Git - thirdparty/linux.git/commit
objtool: Shrink elf hash nodes
authorJosh Poimboeuf <jpoimboe@kernel.org>
Tue, 30 May 2023 17:21:11 +0000 (10:21 -0700)
committerJosh Poimboeuf <jpoimboe@kernel.org>
Wed, 7 Jun 2023 17:03:25 +0000 (10:03 -0700)
commit02b54001066364aee72bc4c802b42a96c6e0dc1f
tree2fcf452eda7d240447e570fab184a4ed6167d4d9
parent890f10a433f51f95eccaec13d46dde769ccc113b
objtool: Shrink elf hash nodes

Instead of using hlist for the 'struct elf' hashes, use a custom
single-linked list scheme.

With allyesconfig + CONFIG_DEBUG_INFO:

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

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