Skip to content

Commit 019fca8

Browse files
dhowellstorvalds
authored andcommitted
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 <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 3ad001c commit 019fca8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/mod/modpost.c

+1
Original file line numberDiff line numberDiff line change
@@ -790,6 +790,7 @@ static const char *section_white_list[] =
790790
{
791791
".comment*",
792792
".debug*",
793+
".GCC-command-line", /* mn10300 */
793794
".mdebug*", /* alpha, score, mips etc. */
794795
".pdr", /* alpha, score, mips etc. */
795796
".stab*",

0 commit comments

Comments
 (0)