WSL2-Linux-Kernel/tools/objtool/include/objtool
Peter Zijlstra d33b9035e1 objtool: Improve reloc hash size guestimate
Nathan reported that LLVM ThinLTO builds have a performance regression
with commit 25cf0d8aa2 ("objtool: Rewrite hashtable sizing"). Sami
was quick to note that this is due to their use of -ffunction-sections.

As a result the .text section is small and basing the number of relocs
off of that no longer works. Instead have read_sections() compute the
sum of all SHF_EXECINSTR sections and use that.

Fixes: 25cf0d8aa2 ("objtool: Rewrite hashtable sizing")
Reported-by: Nathan Chancellor <nathan@kernel.org>
Debugged-by: Sami Tolvanen <samitolvanen@google.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Tested-by: Nathan Chancellor <nathan@kernel.org>
Link: https://lkml.kernel.org/r/YMJpGLuGNsGtA5JJ@hirez.programming.kicks-ass.net
2021-06-14 14:05:36 +02:00
..
arch.h Objtool updates in this cycle were: 2021-04-28 12:53:24 -07:00
builtin.h objtool: Collate parse_options() users 2021-03-06 12:44:23 +01:00
cfi.h
check.h objtool: Cache instruction relocs 2021-04-02 12:46:15 +02:00
elf.h objtool: Improve reloc hash size guestimate 2021-06-14 14:05:36 +02:00
endianness.h
objtool.h objtool: Provide stats for jump_labels 2021-05-12 14:54:56 +02:00
special.h objtool: Decode jump_entry::key addend 2021-05-12 14:54:55 +02:00
warn.h