Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 019fca84 authored by David Howells's avatar David Howells Committed by Linus Torvalds
Browse files

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: default avatarDavid Howells <dhowells@redhat.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 3ad001c0
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -790,6 +790,7 @@ static const char *section_white_list[] =
{
{
	".comment*",
	".comment*",
	".debug*",
	".debug*",
	".GCC-command-line",	/* mn10300 */
	".mdebug*",        /* alpha, score, mips etc. */
	".mdebug*",        /* alpha, score, mips etc. */
	".pdr",            /* alpha, score, mips etc. */
	".pdr",            /* alpha, score, mips etc. */
	".stab*",
	".stab*",