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

2021-01-21 Thread Jiri Olsa
On Thu, Jan 21, 2021 at 03:10:25PM -0800, Andrii Nakryiko wrote: > On Thu, Jan 21, 2021 at 12:24 PM 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 >

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

2021-01-21 Thread Andrii Nakryiko
On Thu, Jan 21, 2021 at 12:24 PM 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 > --- > dutil.c | 8 ++-- > 1 file changed, 6 insertions(+), 2 deletions(-)

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

2021-01-21 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, 6 insertions(+), 2 deletions(-) diff --git a/dutil.c b/dutil.c index 7b667647420f..9e0fdca3ae04 100

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

2021-01-20 Thread Jiri Olsa
On Tue, Jan 19, 2021 at 05:23:00PM -0800, Andrii Nakryiko wrote: > On Tue, Jan 19, 2021 at 2:16 PM 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 > >

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

2021-01-19 Thread Andrii Nakryiko
On Tue, Jan 19, 2021 at 2:16 PM 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 > --- > dutil.c | 8 ++-- > 1 file changed, 6 insertions(+), 2 deletions(-) >

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

2021-01-19 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, 6 insertions(+), 2 deletions(-) diff --git a/dutil.c b/dutil.c index 7b667647420f..321f4be6669e 100