[PATCH] ARM: Avoid discarding sections that might have SMP_ON_UP fixups
From: Russell King - ARM Linux <hidden>
Date: 2011-02-09 14:22:11
Also in:
linux-omap
From: Russell King - ARM Linux <hidden>
Date: 2011-02-09 14:22:11
Also in:
linux-omap
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.