objtool: Optimize layout of struct symbol
authorThomas Weißschuh <linux@weissschuh.net>
Tue, 27 Dec 2022 16:01:02 +0000 (16:01 +0000)
committerJosh Poimboeuf <jpoimboe@kernel.org>
Wed, 1 Feb 2023 17:15:24 +0000 (09:15 -0800)
commit21a899f9fc78be6b289ee4627bccadf560930eb5
tree6c0356e98fcbbc46872fdf9563948c94e149c999
parent8045b8f0b17edf375849f83c80dd05194850b6ed
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: Thomas Weißschuh <linux@weissschuh.net>
Link: https://lore.kernel.org/r/20221216-objtool-memory-v2-6-17968f85a464@weissschuh.net
Signed-off-by: Josh Poimboeuf <jpoimboe@kernel.org>
tools/objtool/include/objtool/elf.h