elf_symtab: Introduce elf_sym__is_local_object
Will be used when encoding the OBJECT symtab entries in the objects CTF section (varibles/data). Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
parent
a6ea527aab
commit
1d7bd94e2f
@ -57,6 +57,13 @@ static inline bool elf_sym__is_local_function(const GElf_Sym *sym)
|
||||
sym->st_shndx != SHN_UNDEF;
|
||||
}
|
||||
|
||||
static inline bool elf_sym__is_local_object(const GElf_Sym *sym)
|
||||
{
|
||||
return elf_sym__type(sym) == STT_OBJECT &&
|
||||
sym->st_name != 0 &&
|
||||
sym->st_shndx != SHN_UNDEF;
|
||||
}
|
||||
|
||||
/**
|
||||
* elf_symtab__for_each_symbol - iterate thru all the symbols
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user