提交 019fca84 编写于 作者: D David Howells 提交者: Linus Torvalds

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: NDavid Howells <dhowells@redhat.com>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 3ad001c0
...@@ -790,6 +790,7 @@ static const char *section_white_list[] = ...@@ -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*",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册