LKML Archive on lore.kernel.org help / color / mirror / Atom feed
From: Atsushi Nemoto <anemo@mba.ocn.ne.jp> To: linux-kernel@vger.kernel.org Subject: Detecting section mismatches in vmlinux Date: Thu, 22 Feb 2007 00:57:28 +0900 (JST) [thread overview] Message-ID: <20070222.005728.126762028.anemo@mba.ocn.ne.jp> (raw) Until 2.6.16 or so, we had reference_init.pl and reference_discarded.pl 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 .init.data:initkmem_list3 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
next 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: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20070222.005728.126762028.anemo@mba.ocn.ne.jp \ --to=anemo@mba.ocn.ne.jp \ --cc=linux-kernel@vger.kernel.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe 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).