summaryrefslogtreecommitdiff
path: root/common/firmware_image.lds.S
diff options
context:
space:
mode:
authorRong Chang <rongchang@google.com>2017-02-20 16:15:09 +0800
committerchrome-bot <chrome-bot@chromium.org>2017-06-02 16:59:36 -0700
commit9ca4586129844b86ca4b346860ab658754228d2b (patch)
treee8bd729cb6cca3f76b9aca3a9a0b0f1d204d6ef4 /common/firmware_image.lds.S
parentd0ee126b4cdc368c36ae6660d66fed1524476e59 (diff)
downloadchrome-ec-9ca4586129844b86ca4b346860ab658754228d2b.tar.gz
common: Add support for flash with regions of different size
Add support to handle devices with flash regions of different sizes. BRANCH=none TEST=compile BUG=b:38018926 Change-Id: I8f842abaa50de724df60dd7e19f9e97cb9660367 Signed-off-by: Gwendal Grignou <gwendal@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/264031 Reviewed-by: Alexandru M Stan <amstan@chromium.org>
Diffstat (limited to 'common/firmware_image.lds.S')
-rw-r--r--common/firmware_image.lds.S3
1 files changed, 0 insertions, 3 deletions
diff --git a/common/firmware_image.lds.S b/common/firmware_image.lds.S
index 30d7ebb0cc..fe41992df9 100644
--- a/common/firmware_image.lds.S
+++ b/common/firmware_image.lds.S
@@ -14,7 +14,6 @@ MEMORY
}
SECTIONS
{
- . = ALIGN(CONFIG_FLASH_BANK_SIZE);
#if defined(NPCX_RO_HEADER)
/* Replace *_MEM_OFF with *_STORAGE_OFF to indicate flat file contains header
* or some struture which doesn't belong to FW */
@@ -25,7 +24,6 @@ SECTIONS
#endif
*(.image.RO)
} > FLASH =0xff
- . = ALIGN(CONFIG_FLASH_BANK_SIZE);
#ifdef CONFIG_RWSIG_TYPE_RWSIG
.image.RO.key : AT(CONFIG_RO_PUBKEY_ADDR) {
@@ -44,7 +42,6 @@ SECTIONS
CONFIG_SHAREDLIB_MEM_OFF) {
*(.image.libsharedobjs)
} > FLASH =0xff
- . = ALIGN(CONFIG_FLASH_BANK_SIZE);
#endif
#if defined(NPCX_RO_HEADER)