diff options
author | Matthew Wilcox <matthew@wil.cx> | 2007-02-05 19:34:00 -0500 |
---|---|---|
committer | Kyle McMartin <kyle@athena.road.mcmartin.ca> | 2007-02-08 18:56:41 -0500 |
commit | 742433b00b1c53d447a10f215cf887e4cb3406b5 (patch) | |
tree | ab055b5408a1c2ebc4813f44b5cee2f97dd2713f /scripts/mod | |
parent | 29a1e1d2732c7bfa94465749285aea0f2ed12213 (diff) |
[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: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'scripts/mod')
-rw-r--r-- | scripts/mod/modpost.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index ac0a58222992..e26381e3fc00 100644 --- a/scripts/mod/modpost.c +++ b/scripts/mod/modpost.c | |||
@@ -910,7 +910,7 @@ static int init_section_ref_ok(const char *name) | |||
910 | ".opd", /* see comment [OPD] at exit_section_ref_ok() */ | 910 | ".opd", /* see comment [OPD] at exit_section_ref_ok() */ |
911 | ".toc1", /* used by ppc64 */ | 911 | ".toc1", /* used by ppc64 */ |
912 | ".stab", | 912 | ".stab", |
913 | ".rodata", | 913 | ".data.rel.ro", /* used by parisc64 */ |
914 | ".parainstructions", | 914 | ".parainstructions", |
915 | ".text.lock", | 915 | ".text.lock", |
916 | "__bug_table", /* used by powerpc for BUG() */ | 916 | "__bug_table", /* used by powerpc for BUG() */ |
@@ -933,6 +933,7 @@ static int init_section_ref_ok(const char *name) | |||
933 | ".eh_frame", | 933 | ".eh_frame", |
934 | ".debug", | 934 | ".debug", |
935 | ".parainstructions", | 935 | ".parainstructions", |
936 | ".rodata", | ||
936 | NULL | 937 | NULL |
937 | }; | 938 | }; |
938 | /* part of section name */ | 939 | /* part of section name */ |