diff options
Diffstat (limited to 'scripts/mod')
-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 b16044002d91..1ec7158b6c1f 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*", |
@@ -1230,7 +1232,7 @@ static char *sec2annotation(const char *s) | |||
1230 | strcat(p, " "); | 1232 | strcat(p, " "); |
1231 | return r; /* we leak her but we do not care */ | 1233 | return r; /* we leak her but we do not care */ |
1232 | } else { | 1234 | } else { |
1233 | return ""; | 1235 | return strdup(""); |
1234 | } | 1236 | } |
1235 | } | 1237 | } |
1236 | 1238 | ||
@@ -1365,7 +1367,7 @@ static void report_sec_mismatch(const char *modname, | |||
1365 | "%s%s so it may be used outside an exit section.\n", | 1367 | "%s%s so it may be used outside an exit section.\n", |
1366 | from, prl_from, fromsym, from_p, | 1368 | from, prl_from, fromsym, from_p, |
1367 | to, prl_to, tosym, to_p, | 1369 | to, prl_to, tosym, to_p, |
1368 | sec2annotation(tosec), tosym, to_p); | 1370 | prl_to, tosym, to_p); |
1369 | free(prl_from); | 1371 | free(prl_from); |
1370 | free(prl_to); | 1372 | free(prl_to); |
1371 | break; | 1373 | break; |