modpost: Permit .GCC.command.line sections
authorJonathan Kliegman <kliegs@chromium.org>
Thu, 4 Oct 2012 20:23:29 +0000 (16:23 -0400)
committerGerrit <chrome-bot@google.com>
Fri, 5 Oct 2012 16:33:28 +0000 (09:33 -0700)
Allow .GCC.command.line sections in modules to prevent modpost warnings:
WARNING: sound/usb/snd-usbmidi-lib.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.

BUG=None
TEST=Warnings disappear with this change.
  Deployed kernel to system and no obvious regressions.
Signed-off-by: Jonathan Kliegman <kliegs@chromium.org>
Change-Id: Iefe98bb2b71cee8fb72dc9e6ce25c7be240f6609
Reviewed-on: https://gerrit.chromium.org/gerrit/34667
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Reviewed-by: Olof Johansson <olofj@chromium.org>
Commit-Ready: Jon Kliegman <kliegs@chromium.org>
Tested-by: Jon Kliegman <kliegs@chromium.org>
scripts/mod/modpost.c

index c4e7d15..886e000 100644 (file)
@@ -818,6 +818,7 @@ static const char *section_white_list[] =
        ".debug*",
        ".zdebug*",             /* Compressed debug sections. */
        ".GCC-command-line",    /* mn10300 */
+       ".GCC.command.line",    /* record-gcc-switches, non mn10300 */
        ".mdebug*",        /* alpha, score, mips etc. */
        ".pdr",            /* alpha, score, mips etc. */
        ".stab*",