alistair23-linux/scripts/mod
Atsushi Nemoto f892b7d480 kbuild: make better section mismatch reports on i386, arm and mips
On i386, ARM and MIPS, warn_sec_mismatch() sometimes fails to show
usefull symbol name.  This is because empty 'refsym' due to 0 r_addend
value.  This patch is to adjust r_addend value, consulting with
apply_relocate() routine in kernel code.

Without this patch:
  MODPOST vmlinux
WARNING: init/built-in.o - Section mismatch: reference to .init.text: from .text between 'rest_init' (at offset 0xf4) and 'try_name'
WARNING: mm/built-in.o - Section mismatch: reference to .init.text: from .text between 'kmem_cache_create' (at offset 0x18a39) and 'cache_reap'
WARNING: mm/built-in.o - Section mismatch: reference to .init.text: from .text between 'kmem_cache_create' (at offset 0x18a6b) and 'cache_reap'

With this patch:
  MODPOST vmlinux
WARNING: mm/built-in.o - Section mismatch: reference to .init.text:set_up_list3s from .text between 'kmem_cache_create' (at offset 0x18a39) and 'cache_reap'
WARNING: mm/built-in.o - Section mismatch: reference to .init.text:set_up_list3s from .text between 'kmem_cache_create' (at offset 0x18a6b) and 'cache_reap'

Now modpost can detect "kernel_init" name (and whitelist it) and show
"set_up_list3s" name.

Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
2007-05-19 09:11:57 +02:00
..
.gitignore Add some basic .gitignore files 2005-10-18 08:26:15 -07:00
empty.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
file2alias.c powerpc: Fix the MODALIAS generation in modpost for of devices 2007-05-19 09:10:10 +02:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
mk_elfconfig.c blackfin architecture 2007-05-07 12:12:58 -07:00
modpost.c kbuild: make better section mismatch reports on i386, arm and mips 2007-05-19 09:11:57 +02:00
modpost.h kbuild: make better section mismatch reports on i386, arm and mips 2007-05-19 09:11:57 +02:00
sumversion.c kbuild: include limits.h in sumversion.c for PATH_MAX 2007-05-19 09:10:59 +02:00