lkml.org 
[lkml]   [2020]   [Mar]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC][PATCH 05/16] objtool: Optimize find_symbol_by_index()
> --- a/tools/objtool/elf.h
> +++ b/tools/objtool/elf.h
> @@ -27,7 +27,6 @@ struct section {
> struct list_head list;
> GElf_Shdr sh;
> struct list_head symbol_list;
> - DECLARE_HASHTABLE(symbol_hash, 8);
> struct list_head rela_list;
> DECLARE_HASHTABLE(rela_hash, 16);
> struct section *base, *rela;
> @@ -71,7 +70,7 @@ struct elf {
> int fd;
> char *name;
> struct list_head sections;
> - DECLARE_HASHTABLE(rela_hash, 16);
> + DECLARE_HASHTABLE(symbol_hash, 20);
> };

Not that it really matters, but what was rela_hash in struct elf for
before this?

Miroslav

\
 
 \ /
  Last update: 2020-03-17 12:56    [W:0.706 / U:0.140 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site