Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

David Howells and committed by
Linus Torvalds
019fca84 3ad001c0

+1
+1
scripts/mod/modpost.c
··· 790 790 { 791 791 ".comment*", 792 792 ".debug*", 793 + ".GCC-command-line", /* mn10300 */ 793 794 ".mdebug*", /* alpha, score, mips etc. */ 794 795 ".pdr", /* alpha, score, mips etc. */ 795 796 ".stab*",