aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/mod
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2007-07-10 04:16:32 -0400
committerSam Ravnborg <sam@ravnborg.org>2007-07-17 05:15:48 -0400
commiteec73e887a96b50035c92c57e01137dcbe6c5a39 (patch)
tree3aab0619b6b1e9af21746f1658a82e0141c90dd9 /scripts/mod
parenta5eb6a502b71ee6bf1a9768b12ff4545cb7a50fe (diff)
Whitelist references from __dbe_table to .init
This is needed on MIPS where the same mechanism as get_user() is used to intercept bus error exceptions for some hardware probes. Without this patch modpost will throw spurious warnings: LD vmlinux SYSMAP System.map SYSMAP .tmp_System.map MODPOST vmlinux WARNING: arch/mips/sgi-ip22/built-in.o(__dbe_table+0x0): Section mismatch: reference to .init.text: Signed-off-by: Ralf Baechle <ralf@linux-mips.org> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
Diffstat (limited to 'scripts/mod')
-rw-r--r--scripts/mod/modpost.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c
index 3f3848f805f5..04579a517900 100644
--- a/scripts/mod/modpost.c
+++ b/scripts/mod/modpost.c
@@ -1141,6 +1141,7 @@ static int init_section_ref_ok(const char *name)
1141 const char **s; 1141 const char **s;
1142 /* Absolute section names */ 1142 /* Absolute section names */
1143 const char *namelist1[] = { 1143 const char *namelist1[] = {
1144 "__dbe_table", /* MIPS generate these */
1144 "__ftr_fixup", /* powerpc cpu feature fixup */ 1145 "__ftr_fixup", /* powerpc cpu feature fixup */
1145 "__fw_ftr_fixup", /* powerpc firmware feature fixup */ 1146 "__fw_ftr_fixup", /* powerpc firmware feature fixup */
1146 "__param", 1147 "__param",