[PATCH] ARM: Avoid discarding sections that might have SMP_ON_UP fixups
From: Dave Martin <hidden>
Date: 2011-02-10 14:13:13
Also in:
linux-omap
On Thu, Feb 10, 2011 at 2:11 PM, Dave Martin [off-list ref] wrote:
On Thu, Feb 10, 2011 at 12:56 PM, Russell King - ARM Linux [off-list ref] wrote:quoted
On Wed, Feb 09, 2011 at 02:22:11PM +0000, Russell King - ARM Linux wrote:quoted
On Wed, Jan 26, 2011 at 05:25:35PM +0000, Dave P. Martin wrote:quoted
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?Hi, apologies-- didn't see my mail for a bit. I get the problem with this tree and config (which builds with SMP_ON_UP and THUMB2_KERNEL for omap3/4): Tree: git://git.linaro.org/people/dmart/linux-2.6-arm.git dirty/arm/omap-thumb2+merged Config: http://people.linaro.org/~dmart/arm_omap-thumb2+v2_config
Note that this tree contains some extra patches (though I believe nothing is there which should cause the problem), and does not contain everything from rmk/devel -- so it's possible this has been fixed in the meantime or no longer occurs for some other reason... Cheers ---Dave