Message ID | 1392733470-8228-4-git-send-email-andi@firstfloor.org (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/scripts/kallsyms.c b/scripts/kallsyms.c index ceef756..d79027e 100644 --- a/scripts/kallsyms.c +++ b/scripts/kallsyms.c @@ -151,6 +151,11 @@ static int read_symbol(FILE *in, struct sym_entry *s) /* exclude debugging symbols */ else if (stype == 'N') return -1; + /* Don't include const symbols in the text section + * unless --all-symbols is specified. + */ + else if (toupper(stype) != 'T' && !all_symbols) + return -1; /* include the type field in the symbol name, so that it gets * compressed together */