On Tue, May 15, 2007 at 12:40:35AM +0900, Atsushi Nemoto wrote:
> On i386 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.
Applied.
It seems arm is impacted by the same.
Can you add arm support for the same?
Sam
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]