diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2007-07-31 03:38:47 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-31 18:39:40 -0400 |
commit | ad0b142772eb1f88f0e77cb63c38b0005e83c2bd (patch) | |
tree | 0d985fc99986aaea1d22112cb11a63f42cab9b49 | |
parent | db0031947bad3feafc217d5ac4f320021f57c740 (diff) |
kbuild: 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>
Cc: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | scripts/mod/modpost.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index ee58ded021d7..6c145d6e89de 100644 --- a/scripts/mod/modpost.c +++ b/scripts/mod/modpost.c | |||
@@ -1121,6 +1121,7 @@ static int initexit_section_ref_ok(const char *name) | |||
1121 | ".machvec", /* ia64 + powerpc uses these */ | 1121 | ".machvec", /* ia64 + powerpc uses these */ |
1122 | ".machine.desc", | 1122 | ".machine.desc", |
1123 | ".opd", /* See comment [OPD] */ | 1123 | ".opd", /* See comment [OPD] */ |
1124 | "__dbe_table", | ||
1124 | ".parainstructions", | 1125 | ".parainstructions", |
1125 | ".pdr", | 1126 | ".pdr", |
1126 | ".plt", /* seen on ARCH=um build on x86_64. Harmless */ | 1127 | ".plt", /* seen on ARCH=um build on x86_64. Harmless */ |