From: Sam Ravnborg Date: Sat, 2 Jun 2007 19:29:20 +0000 (+0200) Subject: kbuild: warn about references from .init.text to .exit.text X-Git-Tag: MMI-PSA29.97-13-9~41446^2~15 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6fc53bae3d5940f1b123afa5ad082359b1a376be;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git kbuild: warn about references from .init.text to .exit.text The .exit.text section may be discarded either at build or at runtime. So let modpost warn if this situation is detected. Signed-off-by: Sam Ravnborg --- diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index 1ef78753db97..7f5ff7e0a0f3 100644 --- a/scripts/mod/modpost.c +++ b/scripts/mod/modpost.c @@ -1214,7 +1214,6 @@ static int exit_section_ref_ok(const char *name) ".exit.data", ".exit.text", ".exitcall.exit", - ".init.text", ".rodata", NULL };