Skip to content
Commit 21a899f9 authored by Thomas Weißschuh's avatar Thomas Weißschuh Committed by Josh Poimboeuf
Browse files

objtool: Optimize layout of struct symbol



Reduce the size of struct symbol on x86_64 from 208 to 200 bytes.
This structure is allocated a lot and never freed.

This reduces maximum memory usage while processing vmlinux.o from
2919716 KB to 2917988 KB (-0.5%) on my notebooks "localmodconfig".

Signed-off-by: default avatarThomas Weißschuh <linux@weissschuh.net>
Link: https://lore.kernel.org/r/20221216-objtool-memory-v2-6-17968f85a464@weissschuh.net


Signed-off-by: default avatarJosh Poimboeuf <jpoimboe@kernel.org>
parent 8045b8f0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment