Commit a1435049 authored by Keith Owens's avatar Keith Owens Committed by Linus Torvalds

[PATCH] kallsyms: exclude kallsyms-generated symbols

Exclude symbols added by kallsyms itself, so .tmp_kallsyms[12].S have
the same list of symbols.
Signed-off-by: default avatarKeith Owens <kaos@sgi.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 5ae39e55
......@@ -72,7 +72,15 @@ symbol_valid(struct sym_entry *s)
return 0;
}
if (strstr(s->sym, "_compiled."))
/* Exclude symbols which vary between passes. Passes 1 and 2 must have
* identical symbol lists. The kallsyms_* symbols below are only added
* after pass 1, they would be included in pass 2 when --all-symbols is
* specified so exclude them to get a stable symbol list.
*/
if (strstr(s->sym, "_compiled.") ||
strcmp(s->sym, "kallsyms_addresses") == 0 ||
strcmp(s->sym, "kallsyms_num_syms") == 0 ||
strcmp(s->sym, "kallsyms_names") == 0)
return 0;
return 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment