kbuild: warn about references from .init.text to .exit.text
authorSam Ravnborg <sam@ravnborg.org>
Sat, 2 Jun 2007 19:29:20 +0000 (21:29 +0200)
committerSam Ravnborg <sam@ravnborg.org>
Mon, 16 Jul 2007 21:24:47 +0000 (23:24 +0200)
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 <sam@ravnborg.org>
scripts/mod/modpost.c

index 1ef78753db97662001ac77863bdfb7a9394a8dd3..7f5ff7e0a0f3f572019f76f7053da30088ae42ca 100644 (file)
@@ -1214,7 +1214,6 @@ static int exit_section_ref_ok(const char *name)
                ".exit.data",
                ".exit.text",
                ".exitcall.exit",
-               ".init.text",
                ".rodata",
                NULL
        };