From cd8a085e00a546b36b8b5a5bae125350008cf8a0 Mon Sep 17 00:00:00 2001 From: px4dev Date: Sat, 18 Aug 2012 22:03:48 -0700 Subject: [PATCH] Support for a __param section in which we can put parameter things. --- nuttx/configs/px4fmu/common/ld.script | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/nuttx/configs/px4fmu/common/ld.script b/nuttx/configs/px4fmu/common/ld.script index e3ca771b16..b1852b0bd9 100644 --- a/nuttx/configs/px4fmu/common/ld.script +++ b/nuttx/configs/px4fmu/common/ld.script @@ -75,8 +75,6 @@ SECTIONS *(.gnu.warning) *(.rodata .rodata.*) *(.gnu.linkonce.t.*) - *(.glue_7) - *(.glue_7t) *(.got) *(.gcc_except_table) *(.gnu.linkonce.r.*) @@ -89,6 +87,15 @@ SECTIONS __errno = get_errno_ptr; } > flash + /* + * Construction data for parameters. + */ + __param ALIGN(4): { + __param_start = ABSOLUTE(.); + KEEP(*(__param*)) + __param_end = ABSOLUTE(.); + } > flash + .ARM.extab : { *(.ARM.extab*) } > flash