aboutsummaryrefslogtreecommitdiff
path: root/lib/lm3s/libopencm3_lm3s.ld
diff options
context:
space:
mode:
Diffstat (limited to 'lib/lm3s/libopencm3_lm3s.ld')
-rw-r--r--lib/lm3s/libopencm3_lm3s.ld23
1 files changed, 16 insertions, 7 deletions
diff --git a/lib/lm3s/libopencm3_lm3s.ld b/lib/lm3s/libopencm3_lm3s.ld
index d6de32b..ceb391a 100644
--- a/lib/lm3s/libopencm3_lm3s.ld
+++ b/lib/lm3s/libopencm3_lm3s.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 = .;
}