diff --git a/platforms/nuttx/nuttx-configs/nxphlite-v3/scripts/ld.script b/platforms/nuttx/nuttx-configs/nxphlite-v3/scripts/ld.script index 3e8b83400c..ce102037e1 100644 --- a/platforms/nuttx/nuttx-configs/nxphlite-v3/scripts/ld.script +++ b/platforms/nuttx/nuttx-configs/nxphlite-v3/scripts/ld.script @@ -87,8 +87,9 @@ SECTIONS * use the NuttX get_errno_ptr() function. */ __errno = get_errno_ptr; - . = ALIGN(8); - _eotext = .; + . = ALIGN(8); + FILL(0xff) + . += 8; } > progflash =0xff /* @@ -99,6 +100,9 @@ SECTIONS _sinit = ABSOLUTE(.); KEEP(*(.init_array .init_array.*)) _einit = ABSOLUTE(.); + . = ALIGN(8); + FILL(0xff) + . += 8; } > progflash /* @@ -108,10 +112,16 @@ SECTIONS __param_start = ABSOLUTE(.); KEEP(*(__param*)) __param_end = ABSOLUTE(.); + . = ALIGN(8); + FILL(0xff) + . += 8; } > progflash .ARM.extab : { *(.ARM.extab*) + . = ALIGN(8); + FILL(0xff) + . += 8; } > progflash __exidx_start = ABSOLUTE(.); @@ -128,14 +138,18 @@ SECTIONS *(.gnu.linkonce.d.*) CONSTRUCTORS _edata = ABSOLUTE(.); + . = ALIGN(8); + FILL(0xff) + . += 8; } > datasram AT > progflash .ramfunc ALIGN(4): { _sramfuncs = ABSOLUTE(.); *(.ramfunc .ramfunc.*) _eramfuncs = ABSOLUTE(.); - . = ALIGN(8); - _eotext = .; + . = ALIGN(8); + FILL(0xff) + . += 8; } > datasram AT > progflash =0xff _framfuncs = LOADADDR(.ramfunc);