From 4ecbed698241e637a13048a199d29c142445c360 Mon Sep 17 00:00:00 2001 From: Ian McIntyre Date: Wed, 12 Mar 2025 21:50:39 -0400 Subject: Place .xip sections into flash We added the `.xip` section to ensure that the reset handler and pre-init functions would be placed in flash. This commit lets users place other content into that section. `.xip` is intended for instructions. The runtime builder will place these instructions into the same load region as `.text`. However, there's no pre-`main` relocation. Aligning the `.xip` and the `.text` section produces more predictable behavior between GNU's ld and LLVM's lld. --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'CHANGELOG.md') diff --git a/CHANGELOG.md b/CHANGELOG.md index bd6fb98..2920663 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ ## [Unreleased] +Place sections starting with `.xip` into the same load region of `.text`. +Unlike `.text`, the contents in `.xip` will not be relocated. + +Four byte align both the `.xip` and `.text` sections for more predictable +behaviors across linkers. + ## [0.1.6] 2025-03-01 Add new MCU targets: -- cgit v1.2.3