common: Format firmware_image linker script
This is a cleanup/reformat of the linker script.
This brings no functional change.
BRANCH=none
TEST=make buildall
#include "rwsig.h"
#ifdef NPCX_RO_HEADER
-/* Replace *_MEM_OFF with *_STORAGE_OFF to indicate flat file contains header
- * or some struture which doesn't belong to FW */
+/*
+ * Replace *_MEM_OFF with *_STORAGE_OFF to indicate flat file contains header
+ * or some struture which doesn't belong to FW
+ */
#define IMAGE_RO_AT (CONFIG_PROGRAM_MEMORY_BASE + \
CONFIG_EC_PROTECTED_STORAGE_OFF)
/* npcx uses *STORAGE_OFF to plan the layout of flash image */
@@ -37,13 +39,16 @@ and RW images at different Flash offset */
OUTPUT_FORMAT(BFD_FORMAT, BFD_FORMAT, BFD_FORMAT)
OUTPUT_ARCH(BFD_ARCH)
+
MEMORY
{
- FLASH (rx) : ORIGIN = CONFIG_PROGRAM_MEMORY_BASE, LENGTH = CONFIG_FLASH_SIZE
+ FLASH (rx) : ORIGIN = CONFIG_PROGRAM_MEMORY_BASE,
+ LENGTH = CONFIG_FLASH_SIZE
#ifdef CONFIG_DRAM_BASE
DRAM (rx) : ORIGIN = CONFIG_DRAM_BASE_LOAD, LENGTH = CONFIG_DRAM_SIZE
#endif
}
+
SECTIONS
{
.image.RO : AT(IMAGE_RO_AT) {
