diff options
author | Catalin Marinas <catalin.marinas@arm.com> | 2009-06-19 11:39:29 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2009-06-19 11:44:21 -0400 |
commit | 7436127ce9042f95a10bb5423f726fd63a61934d (patch) | |
tree | f943e17a20bf193945b83bbf355da5ef8cd77dc1 /arch/arm/kernel | |
parent | c2860d43f5dfab599fc1308ab61b1d3e30801ceb (diff) |
[ARM] 5557/1: Discard some ARM.ex*.*exit.text sections when !HOTPLUG or !HOTPLUG_CPU
Not discarding these sections when hotplug isn't available prevents the
kernel from building.
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/arm/kernel')
-rw-r--r-- | arch/arm/kernel/vmlinux.lds.S | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/kernel/vmlinux.lds.S b/arch/arm/kernel/vmlinux.lds.S index 6c0779792546..4340bf3d2c84 100644 --- a/arch/arm/kernel/vmlinux.lds.S +++ b/arch/arm/kernel/vmlinux.lds.S | |||
@@ -84,6 +84,14 @@ SECTIONS | |||
84 | *(.exitcall.exit) | 84 | *(.exitcall.exit) |
85 | *(.ARM.exidx.exit.text) | 85 | *(.ARM.exidx.exit.text) |
86 | *(.ARM.extab.exit.text) | 86 | *(.ARM.extab.exit.text) |
87 | #ifndef CONFIG_HOTPLUG_CPU | ||
88 | *(.ARM.exidx.cpuexit.text) | ||
89 | *(.ARM.extab.cpuexit.text) | ||
90 | #endif | ||
91 | #ifndef CONFIG_HOTPLUG | ||
92 | *(.ARM.exidx.devexit.text) | ||
93 | *(.ARM.extab.devexit.text) | ||
94 | #endif | ||
87 | #ifndef CONFIG_MMU | 95 | #ifndef CONFIG_MMU |
88 | *(.fixup) | 96 | *(.fixup) |
89 | *(__ex_table) | 97 | *(__ex_table) |