diff options
author | Keith Owens <kaos@sgi.com> | 2004-06-26 20:54:33 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-06-26 20:54:33 -0700 |
commit | a1435049648b061567ae973dbb8fbbb1f570148f (patch) | |
tree | f3d2a2f18810da94bfe54c74dc9fb1914e1053d4 /scripts | |
parent | 5ae39e5545dd5ddd0e7cc3fa35deb13ccc315c75 (diff) | |
download | history-a1435049648b061567ae973dbb8fbbb1f570148f.tar.gz |
[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: Keith Owens <kaos@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/kallsyms.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/scripts/kallsyms.c b/scripts/kallsyms.c index f4b328979cd16..5d6261b8cc6ff 100644 --- a/scripts/kallsyms.c +++ b/scripts/kallsyms.c @@ -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; |