elf_symtab: Add elf_sym__section helper

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
Arnaldo Carvalho de Melo 2009-04-03 11:56:03 -03:00
parent 0e56f5e562
commit f74ad7eb4c
1 changed files with 5 additions and 0 deletions

View File

@ -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);