From 9f4cedc61d50afbd69d33ab2a01794b249908276 Mon Sep 17 00:00:00 2001 From: Arnaldo Carvalho de Melo Date: Tue, 31 Mar 2009 18:19:19 -0300 Subject: [PATCH] ctf_encoder: ctf__ignore_symtab_object should ignore symbols with dots Signed-off-by: Arnaldo Carvalho de Melo --- libctf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libctf.c b/libctf.c index d2dab18..cc0565f 100644 --- a/libctf.c +++ b/libctf.c @@ -37,10 +37,10 @@ bool ctf__ignore_symtab_function(const GElf_Sym *sym, const char *sym_name) sizeof("__libc_csu_") - 1) == 0); } -bool ctf__ignore_symtab_object(const GElf_Sym *sym, - const char *sym_name __unused) +bool ctf__ignore_symtab_object(const GElf_Sym *sym, const char *sym_name) { - return (!elf_sym__is_local_object(sym) || sym->st_size == 0); + return (!elf_sym__is_local_object(sym) || sym->st_size == 0 || + strchr(sym_name, '.') != NULL); } size_t ctf__format_flt_attrs(uint32_t eval, char *bf, size_t len)