diff options
Diffstat (limited to 'scripts/mod/modpost.c')
-rw-r--r-- | scripts/mod/modpost.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index 1ce655dde99..253c107b9a9 100644 --- a/scripts/mod/modpost.c +++ b/scripts/mod/modpost.c | |||
@@ -14,6 +14,7 @@ | |||
14 | #define _GNU_SOURCE | 14 | #define _GNU_SOURCE |
15 | #include <stdio.h> | 15 | #include <stdio.h> |
16 | #include <ctype.h> | 16 | #include <ctype.h> |
17 | #include <string.h> | ||
17 | #include "modpost.h" | 18 | #include "modpost.h" |
18 | #include "../../include/generated/autoconf.h" | 19 | #include "../../include/generated/autoconf.h" |
19 | #include "../../include/linux/license.h" | 20 | #include "../../include/linux/license.h" |
@@ -789,6 +790,7 @@ static const char *section_white_list[] = | |||
789 | { | 790 | { |
790 | ".comment*", | 791 | ".comment*", |
791 | ".debug*", | 792 | ".debug*", |
793 | ".GCC-command-line", /* mn10300 */ | ||
792 | ".mdebug*", /* alpha, score, mips etc. */ | 794 | ".mdebug*", /* alpha, score, mips etc. */ |
793 | ".pdr", /* alpha, score, mips etc. */ | 795 | ".pdr", /* alpha, score, mips etc. */ |
794 | ".stab*", | 796 | ".stab*", |
@@ -1217,7 +1219,7 @@ static char *sec2annotation(const char *s) | |||
1217 | strcat(p, " "); | 1219 | strcat(p, " "); |
1218 | return r; /* we leak her but we do not care */ | 1220 | return r; /* we leak her but we do not care */ |
1219 | } else { | 1221 | } else { |
1220 | return ""; | 1222 | return strdup(""); |
1221 | } | 1223 | } |
1222 | } | 1224 | } |
1223 | 1225 | ||
@@ -1352,7 +1354,7 @@ static void report_sec_mismatch(const char *modname, | |||
1352 | "%s%s so it may be used outside an exit section.\n", | 1354 | "%s%s so it may be used outside an exit section.\n", |
1353 | from, prl_from, fromsym, from_p, | 1355 | from, prl_from, fromsym, from_p, |
1354 | to, prl_to, tosym, to_p, | 1356 | to, prl_to, tosym, to_p, |
1355 | sec2annotation(tosec), tosym, to_p); | 1357 | prl_to, tosym, to_p); |
1356 | free(prl_from); | 1358 | free(prl_from); |
1357 | free(prl_to); | 1359 | free(prl_to); |
1358 | break; | 1360 | break; |