LKML Archive on
help / color / mirror / Atom feed
From: Atsushi Nemoto <>
Subject: Detecting section mismatches in vmlinux
Date: Thu, 22 Feb 2007 00:57:28 +0900 (JST)	[thread overview]
Message-ID: <> (raw)

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

             reply	other threads:[~2007-02-21 15:57 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-21 15:57 Atsushi Nemoto [this message]
2007-02-24 18:53 ` Detecting section mismatches in vmlinux 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).