]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
MN10300: Permit .GCC-command-line sections
authorDavid Howells <dhowells@redhat.com>
Thu, 12 Aug 2010 15:54:47 +0000 (16:54 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 12 Aug 2010 16:51:35 +0000 (09:51 -0700)
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>
scripts/mod/modpost.c

index 7acbdd8fcaedae983d57e7c4d74e3570d98f3484..253c107b9a9912305a3ba18b07d86b065149bd89 100644 (file)
@@ -790,6 +790,7 @@ static const char *section_white_list[] =
 {
        ".comment*",
        ".debug*",
+       ".GCC-command-line",    /* mn10300 */
        ".mdebug*",        /* alpha, score, mips etc. */
        ".pdr",            /* alpha, score, mips etc. */
        ".stab*",