android_kernel_xiaomi_sm8350/scripts
Sam Ravnborg b39927cf4c kbuild: check for section mismatch during modpost stage
Section mismatch is identified as references to .init*
sections from non .init sections. And likewise references
to .exit.* sections outside .exit sections.

.init.* sections are discarded after a module is initialized
and references to .init.* sections are oops candidates.
.exit.* sections are discarded when a module is built-in and
thus references to .exit are also oops candidates.

The checks were possible to do using 'make buildcheck' which
called the two perl scripts: reference_discarded.pl and
reference_init.pl. This patch just moves the same functionality
inside modpost and the scripts are then obsoleted.
They will though be kept for a while so users can do double
checks - but note that some .o files are skipped by the perl scripts
so result is not 1:1.
All credit for the concept goes to Keith Owens who implemented
the original perl scrips - this patch just moves it to modpost.

Compared to the perl script the implmentation in modpost will be run
for each kernel build - thus catching the error much sooner, but
the downside is that the individual .o file are not always identified.

Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
2006-02-19 09:51:20 +01:00
..
basic kbuild: escape '#' in .target.cmd files 2005-12-25 23:21:14 +01:00
genksyms gitignore: misc files 2006-01-01 22:21:50 +01:00
kconfig Revert "[PATCH] kconfig: detect if -lintl is needed when linking conf,mconf" 2006-02-09 08:00:14 -08:00
ksymoops
mod kbuild: check for section mismatch during modpost stage 2006-02-19 09:51:20 +01:00
package kbuild: tar-pkg with out-out-tree building 2006-01-01 19:31:30 +01:00
.gitignore gitignore: ignore more generated files 2006-01-03 11:35:26 +01:00
bin2c.c
binoffset.c update the email address of Randy Dunlap 2006-01-03 13:37:51 +01:00
bloat-o-meter [PATCH] tiny: Add bloat-o-meter to scripts 2006-01-08 20:14:10 -08:00
checkconfig.pl
checkincludes.pl
checkstack.pl
checkversion.pl update the email address of Randy Dunlap 2006-01-03 13:37:51 +01:00
conmakehash.c
extract-ikconfig
gcc-version.sh
gen_initramfs_list.sh
kallsyms.c
Kbuild.include kbuild: introduce escsq to escapre single quotes 2006-01-06 22:35:59 +01:00
kernel-doc [PATCH] kernel-doc: clean up the script (whitespace) 2006-02-01 08:53:27 -08:00
Lindent
Makefile kconfig: move lxdialog to scripts/kconfig/lxdialog 2005-12-16 21:35:19 +01:00
Makefile.build kbuild: introduce escsq to escapre single quotes 2006-01-06 22:35:59 +01:00
Makefile.clean
Makefile.host
Makefile.lib kbuild: set correct KBUILD_MODNAME when using well known kernel symbols as module names 2005-12-26 00:33:41 +01:00
Makefile.modinst
Makefile.modpost kbuild: improved modversioning support for external modules 2006-02-19 09:51:18 +01:00
makelst
mkcompile_h
mkmakefile
mksysmap spelling: s/retreive/retrieve/ 2006-01-10 00:10:13 +01:00
mkuboot.sh
mkversion
namespace.pl
patch-kernel update the email address of Randy Dunlap 2006-01-03 13:37:51 +01:00
pnmtologo.c
reference_discarded.pl kbuild: reference_discarded addition 2006-01-08 18:56:51 +01:00
reference_init.pl
setlocalversion kbuild: In setlocalversion change -git_dirty to just -dirty 2006-01-08 18:44:01 +01:00
show_delta
ver_linux