Commit 929f0ace authored by Keith Owens's avatar Keith Owens Committed by Linus Torvalds

[PATCH] kallsyms ppc32 fix

PPC small data area base symbols shift between kallsyms phases 1 and 2, which
makes the kallsyms data unstable.  Exclude them from the kallsyms list.
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 fde74998
...@@ -83,6 +83,11 @@ symbol_valid(struct sym_entry *s) ...@@ -83,6 +83,11 @@ symbol_valid(struct sym_entry *s)
strcmp(s->sym, "kallsyms_names") == 0) strcmp(s->sym, "kallsyms_names") == 0)
return 0; return 0;
/* Exclude linker generated symbols which vary between passes */
if (strcmp(s->sym, "_SDA_BASE_") == 0 || /* ppc */
strcmp(s->sym, "_SDA2_BASE_") == 0) /* ppc */
return 0;
return 1; 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