From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758147Ab2BMWvv (ORCPT ); Mon, 13 Feb 2012 17:51:51 -0500 Received: from caramon.arm.linux.org.uk ([78.32.30.218]:34789 "EHLO caramon.arm.linux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755131Ab2BMWvq (ORCPT ); Mon, 13 Feb 2012 17:51:46 -0500 Date: Mon, 13 Feb 2012 22:51:18 +0000 From: Russell King - ARM Linux To: Uwe =?iso-8859-1?Q?Kleine-K=F6nig?= Cc: Tony Lindgren , linux-kernel@vger.kernel.org, Anders Kaseorg , Rusty Russell , Greg KH , linux-omap@vger.kernel.org, Ben Hutchings , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH] modpost: Fix section warnings for ARM for many compilers Message-ID: <20120213225118.GC31482@n2100.arm.linux.org.uk> References: <20120213212401.GH1426@atomide.com> <20120213222652.GL14173@pengutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20120213222652.GL14173@pengutronix.de> User-Agent: Mutt/1.5.19 (2009-01-05) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Feb 13, 2012 at 11:26:52PM +0100, Uwe Kleine-König wrote: > On Mon, Feb 13, 2012 at 01:24:01PM -0800, Tony Lindgren wrote: > > It turns out that many compilers don't show section warnings on ARM > > currently because handling for ARM_CALL relocs are missing from > > modpost.c. > > > > Based on commit c2e26114 ([ARM] 3205/1: Handle new EABI relocations when > > loading kernel modules) it seems that R_ARM_PC24, R_ARM_CALL and > > R_ARM_JUMP24 can be handled the same way. > > > > As modpost.c includes elf.h, we need to also consider that at least > > Debian libc6-dev is missing defines for both R_ARM_CALL and R_ARM_JUMP24 > > in /usr/include/elf.h. > Huh, even unstable's /usr/include/elf.h doesn't have these symbols. > > > So for now let's just use the numbers in modpost.c. > > > > Cc: Rusty Russell > > Cc: Ben Hutchings > > Cc: Anders Kaseorg > > Cc: Greg KH > > Cc: Russell King > > Signed-off-by: Tony Lindgren > > > > --- > > > > Anybody got better ideas for dealing with the missing elf.h > > defines? > Maybe: > > #ifndef R_ARM_CALL > #warning "you're elf.h include is outdated" "You are elf.h include is outdated" does not make sense. Why are you calling Tony an elf.h include?