aboutsummaryrefslogtreecommitdiff
path: root/nuttx-configs/trifle/scripts/ld.script
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx-configs/trifle/scripts/ld.script')
-rwxr-xr-xnuttx-configs/trifle/scripts/ld.script15
1 files changed, 15 insertions, 0 deletions
diff --git a/nuttx-configs/trifle/scripts/ld.script b/nuttx-configs/trifle/scripts/ld.script
index d89b65314..23e6a5174 100755
--- a/nuttx-configs/trifle/scripts/ld.script
+++ b/nuttx-configs/trifle/scripts/ld.script
@@ -82,6 +82,12 @@ SECTIONS
*(.gcc_except_table)
*(.gnu.linkonce.r.*)
_etext = ABSOLUTE(.);
+
+ /*
+ * This is a hack to make the newlib libm __errno() call
+ * use the NuttX get_errno_ptr() function.
+ */
+ __errno = get_errno_ptr;
} > progflash
.init_section : {
@@ -90,6 +96,15 @@ SECTIONS
_einit = ABSOLUTE(.);
} > progflash
+ /*
+ * Construction data for parameters.
+ */
+ __param ALIGN(4): {
+ __param_start = ABSOLUTE(.);
+ KEEP(*(__param*))
+ __param_end = ABSOLUTE(.);
+ } > progflash
+
.ARM.extab : {
*(.ARM.extab*)
} > progflash