From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751610AbWBQX4e (ORCPT ); Fri, 17 Feb 2006 18:56:34 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751802AbWBQX4e (ORCPT ); Fri, 17 Feb 2006 18:56:34 -0500 Received: from mailout.stusta.mhn.de ([141.84.69.5]:42763 "HELO mailout.stusta.mhn.de") by vger.kernel.org with SMTP id S1751610AbWBQX4e (ORCPT ); Fri, 17 Feb 2006 18:56:34 -0500 Date: Sat, 18 Feb 2006 00:56:33 +0100 From: Adrian Bunk To: Sam Ravnborg Cc: LKML , len.brown@intel.com, Paul Bristow , mpm@selenic.com, B.Zolnierkiewicz@elka.pw.edu.pl, dtor_core@ameritech.net, kkeil@suse.de, linux-dvb-maintainer@linuxtv.org, philb@gnu.org, gregkh@suse.de, dwmw2@infradead.org Subject: Re: kbuild: Section mismatch warnings Message-ID: <20060217235633.GO4422@stusta.de> References: <20060217214855.GA5563@mars.ravnborg.org> <20060217224702.GA25761@mars.ravnborg.org> <20060217233253.GN4422@stusta.de> <20060217233848.GA26630@mars.ravnborg.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060217233848.GA26630@mars.ravnborg.org> User-Agent: Mutt/1.5.11+cvs20060126 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Feb 18, 2006 at 12:38:48AM +0100, Sam Ravnborg wrote: > Hi Adrian > > > > I did not find a way to look up the offending symbol but maybe some elf > > > expert can help? > > >... > > > > I'm not an ELF expert, but simply checking all __init functions in this > > files finds that this seems to be the following: > > > > <-- snip --> > > > > ... > > static struct acpi_driver asus_hotk_driver = { > > .name = ACPI_HOTK_NAME, > > .class = ACPI_HOTK_CLASS, > > .ids = ACPI_HOTK_HID, > > .ops = { > > .add = asus_hotk_add, > > .remove = asus_hotk_remove, > > }, > > }; > > ... > > static int __init asus_hotk_add(struct acpi_device *device) > > ... > > > Correct. > What I wanted was modpost to tell that the symbol being referenced in > the .data section was 'asus_hotk_add' and not just an offset after > asus_hotk_driver. > > What is needed is a link from the RELOCATION RECORD to the symbol table. Ah sorry, I misunderstood your question. > Sam cu Adrian -- "Is there not promise of rain?" Ling Tan asked suddenly out of the darkness. There had been need of rain for many days. "Only a promise," Lao Er said. Pearl S. Buck - Dragon Seed