aboutsummaryrefslogtreecommitdiff
path: root/lib/lpc13xx
diff options
context:
space:
mode:
authorNicolas Schodet2012-09-03 19:51:40 +0200
committerNicolas Schodet2012-09-03 20:41:15 +0200
commit82ef2936a673f0c6cba86e02d80104f56e1de5a2 (patch)
tree171c6ef7f1c56d29e0983df6b8b7871d49b4e6fc /lib/lpc13xx
parent74cd991e7e8972cf22933743c847b5ce2b165798 (diff)
Support exceptions on all targets
Diffstat (limited to 'lib/lpc13xx')
-rw-r--r--lib/lpc13xx/libopencm3_lpc13xx.ld23
1 files changed, 16 insertions, 7 deletions
diff --git a/lib/lpc13xx/libopencm3_lpc13xx.ld b/lib/lpc13xx/libopencm3_lpc13xx.ld
index 3d683de..4e0f1df 100644
--- a/lib/lpc13xx/libopencm3_lpc13xx.ld
+++ b/lib/lpc13xx/libopencm3_lpc13xx.ld
@@ -36,9 +36,24 @@ SECTIONS
. = ALIGN(4);
*(.rodata*) /* Read-only data */
. = ALIGN(4);
- _etext = .;
} >rom
+ /*
+ * Another section used by C++ stuff, appears when using newlib with
+ * 64bit (long long) printf support
+ */
+ .ARM.extab : {
+ *(.ARM.extab*)
+ } >rom
+ .ARM.exidx : {
+ __exidx_start = .;
+ *(.ARM.exidx*)
+ __exidx_end = .;
+ } >rom
+
+ . = ALIGN(4);
+ _etext = .;
+
.data : {
_data = .;
*(.data*) /* Read-write initialized data */
@@ -60,12 +75,6 @@ SECTIONS
*/
/DISCARD/ : { *(.eh_frame) }
- /*
- * Another section used by C++ stuff, appears when using newlib with
- * 64bit (long long) printf support - discard it for now.
- */
- /DISCARD/ : { *(.ARM.exidx) }
-
. = ALIGN(4);
end = .;
}