lkml.org 
[lkml]   [2020]   [Mar]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC][PATCH 08/16] Optimize find_section_by_name()
> @@ -193,6 +198,7 @@ static int read_sections(struct elf *elf
> sec->len = sec->sh.sh_size;
>
> hash_add(elf->section_hash, &sec->hash, sec->idx);
> + hash_add(elf->section_name_hash, &sec->name_hash, str_hash(sec->name));
> }

Don't you need to the same in elf_create_section()?

Miroslav

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