diff options
author | Tom Hughes <tomhughes@chromium.org> | 2022-10-28 09:09:00 -0700 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-10-31 22:42:55 +0000 |
commit | 5db47a635545bdeff1486f6ec97602b471ab581b (patch) | |
tree | d29aa36a895b133911c7050d40ec5e68ecc0a6c8 /chip | |
parent | 5fd2bffe3755a3c6b0a9637b3c28ad5f2d3653c7 (diff) | |
download | chrome-ec-5db47a635545bdeff1486f6ec97602b471ab581b.tar.gz |
chip/mchp/lfw: Specify region for padding
Linking with clang/lld fails since it assumes the region .fill should
use is VECTOR:
ld.lld: error: section '.fill' will not fit in region 'VECTOR':
overflowed by 328 bytes
This change does not affect the gcc/ld build (identical output before and
after).
BRANCH=none
BUG=b:172020503
TEST=./util/compare_build.sh -b all -j 120
=> MATCH
Signed-off-by: Tom Hughes <tomhughes@chromium.org>
Change-Id: Ieeff37fc13befe495dbc567b4be363da07a75c3a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3989666
Reviewed-by: Eric Yilun Lin <yllin@google.com>
Diffstat (limited to 'chip')
-rw-r--r-- | chip/mchp/lfw/ec_lfw.ld | 2 | ||||
-rw-r--r-- | chip/mchp/lfw/ec_lfw_416kb.ld | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/chip/mchp/lfw/ec_lfw.ld b/chip/mchp/lfw/ec_lfw.ld index f0071a55e9..1c745d5d2a 100644 --- a/chip/mchp/lfw/ec_lfw.ld +++ b/chip/mchp/lfw/ec_lfw.ld @@ -79,7 +79,7 @@ SECTIONS FILL(0xFF); . = ORIGIN(SRAM) + LENGTH(SRAM) - 1; BYTE(0xFF); /* emit at least a byte to make linker happy */ - } + } >SRAM __image_size = LOADADDR(.text) + SIZEOF(.text) - ORIGIN(VECTOR); } diff --git a/chip/mchp/lfw/ec_lfw_416kb.ld b/chip/mchp/lfw/ec_lfw_416kb.ld index f27d046e7d..93d70ffbe8 100644 --- a/chip/mchp/lfw/ec_lfw_416kb.ld +++ b/chip/mchp/lfw/ec_lfw_416kb.ld @@ -83,7 +83,7 @@ SECTIONS FILL(0xFF); . = ORIGIN(SRAM) + LENGTH(SRAM) - 1; BYTE(0xFF); /* emit at least a byte to make linker happy */ - } + } >SRAM __image_size = LOADADDR(.text) + SIZEOF(.text) - ORIGIN(VECTOR); } |