diff options
author | Jakob Odersky <jodersky@gmail.com> | 2015-05-14 12:06:43 +0200 |
---|---|---|
committer | Jakob Odersky <jodersky@gmail.com> | 2015-05-14 12:27:10 +0200 |
commit | c7560bb66b3ca3b3abc4dff2a62f3ef865646dda (patch) | |
tree | 29cc1f50471dc0070a8c7db4f9a8019658eab985 /nuttx-configs/trifle/scripts/ld.script | |
parent | 35c49d21359146d8185b6e3c2713575b1b77f250 (diff) | |
download | px4-firmware-c7560bb66b3ca3b3abc4dff2a62f3ef865646dda.tar.gz px4-firmware-c7560bb66b3ca3b3abc4dff2a62f3ef865646dda.tar.bz2 px4-firmware-c7560bb66b3ca3b3abc4dff2a62f3ef865646dda.zip |
implement systemlib (still using dummy serial and hrt)
Diffstat (limited to 'nuttx-configs/trifle/scripts/ld.script')
-rwxr-xr-x | nuttx-configs/trifle/scripts/ld.script | 15 |
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 |