summaryrefslogtreecommitdiffstats
path: root/arch/arm/lib/barebox.lds.S
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2011-03-08 11:59:12 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2011-03-10 14:50:07 +0100
commit084df155d3f5e4991f675a3e7a707e4eafbd1cd8 (patch)
treebca4fafe78c51d7b22ae5fdb56b6a0f3b1fb6902 /arch/arm/lib/barebox.lds.S
parentcad14480bfb3868bd07be53176861cba16105a2f (diff)
downloadbarebox-084df155d3f5e4991f675a3e7a707e4eafbd1cd8.tar.gz
barebox-084df155d3f5e4991f675a3e7a707e4eafbd1cd8.tar.xz
ARM: Add stack unwinding support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/lib/barebox.lds.S')
-rw-r--r--arch/arm/lib/barebox.lds.S16
1 files changed, 16 insertions, 0 deletions
diff --git a/arch/arm/lib/barebox.lds.S b/arch/arm/lib/barebox.lds.S
index cc74b2f07d..7683f739eb 100644
--- a/arch/arm/lib/barebox.lds.S
+++ b/arch/arm/lib/barebox.lds.S
@@ -51,6 +51,22 @@ SECTIONS
. = ALIGN(4);
.rodata : { *(.rodata*) }
+#ifdef CONFIG_ARM_UNWIND
+ /*
+ * Stack unwinding tables
+ */
+ . = ALIGN(8);
+ .ARM.unwind_idx : {
+ __start_unwind_idx = .;
+ *(.ARM.exidx*)
+ __stop_unwind_idx = .;
+ }
+ .ARM.unwind_tab : {
+ __start_unwind_tab = .;
+ *(.ARM.extab*)
+ __stop_unwind_tab = .;
+ }
+#endif
_etext = .; /* End of text and rodata section */
. = ALIGN(4);