elf_symtab: Add elf_sym__section helper
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
0e56f5e562
commit
f74ad7eb4c
|
@ -40,6 +40,11 @@ static inline uint8_t elf_sym__type(const GElf_Sym *sym)
|
|||
return GELF_ST_TYPE(sym->st_info);
|
||||
}
|
||||
|
||||
static inline uint16_t elf_sym__section(const GElf_Sym *sym)
|
||||
{
|
||||
return sym->st_shndx;
|
||||
}
|
||||
|
||||
static inline uint8_t elf_sym__bind(const GElf_Sym *sym)
|
||||
{
|
||||
return GELF_ST_BIND(sym->st_info);
|
||||
|
|
Loading…
Reference in New Issue