From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Pitre Subject: Re: [PATCH 03/14] ARM: v6k: remove CPU_32v6K dependencies in asm/spinlock.h Date: Wed, 26 Jan 2011 16:06:40 -0500 (EST) Message-ID: References: <20110117192050.GE23331@n2100.arm.linux.org.uk> <20110125165919.GD17286@n2100.arm.linux.org.uk> <20110125174636.GE17286@n2100.arm.linux.org.uk> <20110126155203.GA10141@n2100.arm.linux.org.uk> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Return-path: Received: from mail-vw0-f46.google.com ([209.85.212.46]:56521 "EHLO mail-vw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753209Ab1AZVGp (ORCPT ); Wed, 26 Jan 2011 16:06:45 -0500 Received: by vws16 with SMTP id 16so573160vws.19 for ; Wed, 26 Jan 2011 13:06:44 -0800 (PST) In-Reply-To: Sender: linux-omap-owner@vger.kernel.org List-Id: linux-omap@vger.kernel.org To: Dave Martin Cc: Russell King - ARM Linux , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org On Wed, 26 Jan 2011, Dave Martin wrote: > On Wed, Jan 26, 2011 at 3:52 PM, Russell King - ARM Linux > wrote: > > So I don't think weak symbols work like we want them to. > > > > That was the conclusion I came to also ... the linker seems to resolve > references in each object before discarding sections, so the weak > reference has already become concrete and section discard breaks it. Well, I must add to the chorus. And it seems to be impossible to obtain the name of the currently active section from gas either, which would have made the conditional omission of the fixup possible, or similar. Bummer. Nicolas From mboxrd@z Thu Jan 1 00:00:00 1970 From: nicolas.pitre@linaro.org (Nicolas Pitre) Date: Wed, 26 Jan 2011 16:06:40 -0500 (EST) Subject: [PATCH 03/14] ARM: v6k: remove CPU_32v6K dependencies in asm/spinlock.h In-Reply-To: References: <20110117192050.GE23331@n2100.arm.linux.org.uk> <20110125165919.GD17286@n2100.arm.linux.org.uk> <20110125174636.GE17286@n2100.arm.linux.org.uk> <20110126155203.GA10141@n2100.arm.linux.org.uk> Message-ID: To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Wed, 26 Jan 2011, Dave Martin wrote: > On Wed, Jan 26, 2011 at 3:52 PM, Russell King - ARM Linux > wrote: > > So I don't think weak symbols work like we want them to. > > > > That was the conclusion I came to also ... the linker seems to resolve > references in each object before discarding sections, so the weak > reference has already become concrete and section discard breaks it. Well, I must add to the chorus. And it seems to be impossible to obtain the name of the currently active section from gas either, which would have made the conditional omission of the fixup possible, or similar. Bummer. Nicolas