aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/mod/modpost.c
diff options
context:
space:
mode:
authorDavid Howells <dhowells@redhat.com>2010-08-12 11:54:47 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2010-08-12 12:51:35 -0400
commit019fca84e7c4b94817abc77df9081ba208fcc46a (patch)
tree2b14e8b170f0e7ad38b93ab4b5c52f8c8d8fb1ca /scripts/mod/modpost.c
parent3ad001c04f1ad21b87a7648450b53e7f04194f2a (diff)
MN10300: Permit .GCC-command-line sections
Permit .GCC-command-line sections in modules. Otherwise modpost says things like: WARNING: drivers/mtd/chips/map_ram.o (.GCC-command-line): unexpected non-allocatable section. Did you forget to use "ax"/"aw" in a .S file? Note that for example <linux/init.h> contains section definitions for use in .S files. Signed-off-by: David Howells <dhowells@redhat.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'scripts/mod/modpost.c')
-rw-r--r--scripts/mod/modpost.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c
index 7acbdd8fcaed..253c107b9a99 100644
--- a/scripts/mod/modpost.c
+++ b/scripts/mod/modpost.c
@@ -790,6 +790,7 @@ static const char *section_white_list[] =
790{ 790{
791 ".comment*", 791 ".comment*",
792 ".debug*", 792 ".debug*",
793 ".GCC-command-line", /* mn10300 */
793 ".mdebug*", /* alpha, score, mips etc. */ 794 ".mdebug*", /* alpha, score, mips etc. */
794 ".pdr", /* alpha, score, mips etc. */ 795 ".pdr", /* alpha, score, mips etc. */
795 ".stab*", 796 ".stab*",