From mboxrd@z Thu Jan 1 00:00:00 1970 From: linux@arm.linux.org.uk (Russell King - ARM Linux) Date: Thu, 10 Feb 2011 12:56:24 +0000 Subject: [PATCH] ARM: Avoid discarding sections that might have SMP_ON_UP fixups In-Reply-To: <20110209142211.GA11460@n2100.arm.linux.org.uk> References: <20110125165919.GD17286@n2100.arm.linux.org.uk> <20110125174636.GE17286@n2100.arm.linux.org.uk> <20110126124452.GB4232@n2100.arm.linux.org.uk> <20110126172535.GA15983@arm.com> <20110209142211.GA11460@n2100.arm.linux.org.uk> Message-ID: <20110210125624.GA3652@n2100.arm.linux.org.uk> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Wed, Feb 09, 2011 at 02:22:11PM +0000, Russell King - ARM Linux wrote: > On Wed, Jan 26, 2011 at 05:25:35PM +0000, Dave P. Martin wrote: > > SMP_ON_UP fixups lead to vmlinux link errors if those sections are > > discarded at link-time. In particular this may happen for built-in > > __exit stuff. > > > > This patch modifies the vmlinux linker script to reduce the amount > > of discarded sections, and tries to make sure that __exit sections > > are kept in. > > > > This is a hack and probably wrong! Further discussion is needed. > > Can you send the configuration which you see this problem with? > I've tried to build a kernel which inlines the spinlocks, but I find > that's not possible, so I'm doubting whether any fix is required for > mainline. Any news on this, or can it not be reproduced?