From: Jonathan Kliegman Date: Thu, 4 Oct 2012 20:32:19 +0000 (-0400) Subject: modpost: Permit .GCC.command.line sections X-Git-Tag: v3.7-rc1~47^2~1 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=76b27645a5bba85bd26896811c7a25ecc37b3731;p=~emulex%2Finfiniband.git modpost: Permit .GCC.command.line sections 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 contains section definitions for use in .S files. Signed-off-by: Jonathan Kliegman Signed-off-by: Michal Marek --- diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index 68e9f5ed0a6..cd5803c647f 100644 --- a/scripts/mod/modpost.c +++ b/scripts/mod/modpost.c @@ -821,6 +821,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*",