[PATCH 1/2] elf_symtab: Add support for SHN_XINDEX index to elf_section_by_name

2021-01-24 Thread Jiri Olsa
In case the elf's header e_shstrndx contains SHN_XINDEX, we need to call elf_getshdrstrndx to get the proper string table index. Acked-by: Andrii Nakryiko Signed-off-by: Jiri Olsa --- dutil.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/dutil.c b/dutil.c index 7b66

Re: [PATCH 1/2] elf_symtab: Add support for SHN_XINDEX index to elf_section_by_name

2021-01-22 Thread Arnaldo Carvalho de Melo
Em Fri, Jan 22, 2021 at 05:39:19PM +0100, Jiri Olsa escreveu: > In case the elf's header e_shstrndx contains SHN_XINDEX, > we need to call elf_getshdrstrndx to get the proper > string table index. Applied, but changed the changelog comment to: -

Re: [PATCH 1/2] elf_symtab: Add support for SHN_XINDEX index to elf_section_by_name

2021-01-22 Thread Andrii Nakryiko
On Fri, Jan 22, 2021 at 9:22 AM Jiri Olsa wrote: > > In case the elf's header e_shstrndx contains SHN_XINDEX, > we need to call elf_getshdrstrndx to get the proper > string table index. > > Signed-off-by: Jiri Olsa > --- Acked-by: Andrii Nakryiko > dutil.c | 8 +++- > 1 file changed, 7 in

[PATCH 1/2] elf_symtab: Add support for SHN_XINDEX index to elf_section_by_name

2021-01-22 Thread Jiri Olsa
In case the elf's header e_shstrndx contains SHN_XINDEX, we need to call elf_getshdrstrndx to get the proper string table index. Signed-off-by: Jiri Olsa --- dutil.c | 8 +++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/dutil.c b/dutil.c index 7b667647420f..11fb7202049c 1006