提交 742433b0 编写于 作者: M Matthew Wilcox 提交者: Kyle McMartin

[PATCH] PA-RISC: Fix bogus warnings from modpost

parisc and parisc64 seem to name sections a little differently from other
targets.  parisc64 gives spurious warnings like:

WARNING: drivers/net/dummy.o - Section mismatch: reference to .init.text:dummy_setup from .data.rel.ro between '.LC1' (at offset 0x0) and '.LC6'

and parisc gives spurious warnings like:

WARNING: drivers/net/dummy.o - Section mismatch: reference to .init.text:dummy_setup from .rodata.cst4 between '.LC1' (at offset 0x0) and '.LC6'

Given the other comments in modpost.c, it seems that the best solution is
to move rodata down to the 'match at start of name' section and add
.data.rel.ro to the 'match entire name' section.

Cc: Sam Ravnborg <sam@ravnborg.org>
Cc: Kyle McMartin <kyle@mcmartin.ca>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
上级 29a1e1d2
...@@ -910,7 +910,7 @@ static int init_section_ref_ok(const char *name) ...@@ -910,7 +910,7 @@ static int init_section_ref_ok(const char *name)
".opd", /* see comment [OPD] at exit_section_ref_ok() */ ".opd", /* see comment [OPD] at exit_section_ref_ok() */
".toc1", /* used by ppc64 */ ".toc1", /* used by ppc64 */
".stab", ".stab",
".rodata", ".data.rel.ro", /* used by parisc64 */
".parainstructions", ".parainstructions",
".text.lock", ".text.lock",
"__bug_table", /* used by powerpc for BUG() */ "__bug_table", /* used by powerpc for BUG() */
...@@ -933,6 +933,7 @@ static int init_section_ref_ok(const char *name) ...@@ -933,6 +933,7 @@ static int init_section_ref_ok(const char *name)
".eh_frame", ".eh_frame",
".debug", ".debug",
".parainstructions", ".parainstructions",
".rodata",
NULL NULL
}; };
/* part of section name */ /* part of section name */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册