diff options
-rw-r--r-- | scripts/kallsyms.c | 3 | ||||
-rw-r--r-- | scripts/mksysmap | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/scripts/kallsyms.c b/scripts/kallsyms.c index 5d20a2e24cd1..ad2434b26970 100644 --- a/scripts/kallsyms.c +++ b/scripts/kallsyms.c | |||
@@ -108,6 +108,9 @@ static int read_symbol(FILE *in, struct sym_entry *s) | |||
108 | /* exclude also MIPS ELF local symbols ($L123 instead of .L123) */ | 108 | /* exclude also MIPS ELF local symbols ($L123 instead of .L123) */ |
109 | else if (str[0] == '$') | 109 | else if (str[0] == '$') |
110 | return -1; | 110 | return -1; |
111 | /* exclude debugging symbols */ | ||
112 | else if (stype == 'N') | ||
113 | return -1; | ||
111 | 114 | ||
112 | /* include the type field in the symbol name, so that it gets | 115 | /* include the type field in the symbol name, so that it gets |
113 | * compressed together */ | 116 | * compressed together */ |
diff --git a/scripts/mksysmap b/scripts/mksysmap index 4390fab9f5bd..6e133a0bae7a 100644 --- a/scripts/mksysmap +++ b/scripts/mksysmap | |||
@@ -32,6 +32,7 @@ | |||
32 | # For System.map filter away: | 32 | # For System.map filter away: |
33 | # a - local absolute symbols | 33 | # a - local absolute symbols |
34 | # U - undefined global symbols | 34 | # U - undefined global symbols |
35 | # N - debugging symbols | ||
35 | # w - local weak symbols | 36 | # w - local weak symbols |
36 | 37 | ||
37 | # readprofile starts reading symbols when _stext is found, and | 38 | # readprofile starts reading symbols when _stext is found, and |
@@ -40,5 +41,5 @@ | |||
40 | # so we just ignore them to let readprofile continue to work. | 41 | # so we just ignore them to let readprofile continue to work. |
41 | # (At least sparc64 has __crc_ in the middle). | 42 | # (At least sparc64 has __crc_ in the middle). |
42 | 43 | ||
43 | $NM -n $1 | grep -v '\( [aUw] \)\|\(__crc_\)\|\( \$[adt]\)' > $2 | 44 | $NM -n $1 | grep -v '\( [aNUw] \)\|\(__crc_\)\|\( \$[adt]\)' > $2 |
44 | 45 | ||