LKML Archive on
help / color / mirror / Atom feed
* Detecting section mismatches in vmlinux
@ 2007-02-21 15:57 Atsushi Nemoto
  2007-02-24 18:53 ` Atsushi Nemoto
  0 siblings, 1 reply; 7+ messages in thread
From: Atsushi Nemoto @ 2007-02-21 15:57 UTC (permalink / raw)
  To: linux-kernel

Until 2.6.16 or so, we had and to check section mismatches in vmlinux.

Are there any alternatives of this in recent kernel?

Now "modpost vmlinux" is executed during normal build, but it seems
the pass can not detect these mismatches.

For example:

$ ../build-i386/scripts/mod/modpost ../build-i386/mm/built-in.o
WARNING: ../build-i386/mm/built-in.o - Section mismatch: reference to from .text between 'set_up_list3s' (at offset 0x18382) and '__kmem_cache_destroy'

set_up_list3s() in slab.c is not marked as __init and it references
initkmem_list3[] which is marked as __initdata.  So it is not false
positive.  But "modpost vmlinux" does not report it.

Atsushi Nemoto

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-02-27 20:25 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-21 15:57 Detecting section mismatches in vmlinux Atsushi Nemoto
2007-02-24 18:53 ` Atsushi Nemoto
2007-02-24 20:07   ` Sam Ravnborg
2007-02-24 23:25   ` Sam Ravnborg
2007-02-25 15:48     ` Atsushi Nemoto
2007-02-25 20:53       ` [PATCH] x86_64: fix section mismatch warnings Sam Ravnborg
2007-02-27 20:25         ` Andrew Morton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).