Re: [PATCH v3 08/26] objtool: Optimize find_section_by_index()

From: Miroslav Benes
Date: Wed Mar 25 2020 - 06:13:00 EST


On Tue, 24 Mar 2020, Peter Zijlstra wrote:

> In order to avoid a linear search (over 20k entries), add an
> section_hash to the elf object.
>
> This reduces objtool on vmlinux.o from a few minutes to around 45
> seconds.
>
> Signed-off-by: Peter Zijlstra (Intel) <peterz@xxxxxxxxxxxxx>
> Acked-by: Josh Poimboeuf <jpoimboe@xxxxxxxxxx>

Reviewed-by: Miroslav Benes <mbenes@xxxxxxx>

M