From 790356ef6ddd54b002e4d887a6872fbd270020e1 Mon Sep 17 00:00:00 2001 From: David Sidrane Date: Thu, 23 Aug 2018 09:09:30 -0700 Subject: [PATCH] NXPHlite-v3:Ensure bin file sizes in mtpl of 8 --- .../nxphlite-v3/scripts/ld.script | 22 +++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) 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);