From: binutils@emagii.com
To: binutils@sourceware.org
Cc: nickc@redhat.com, Ulf Samuelsson <ulf@emagii.com>
Subject: [PATCH v1 1/7] SECTOR: NEWS
Date: Fri, 10 Mar 2023 01:08:11 +0100 [thread overview]
Message-ID: <20230310000817.751962-2-binutils@emagii.com> (raw)
In-Reply-To: <20230310000817.751962-1-binutils@emagii.com>
From: Ulf Samuelsson <ulf@emagii.com>
Signed-off-by: Ulf Samuelsson <ulf@emagii.com>
---
ld/NEWS | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
diff --git a/ld/NEWS b/ld/NEWS
index b79023ecb95..21b33b58220 100644
--- a/ld/NEWS
+++ b/ld/NEWS
@@ -1,5 +1,47 @@
-*- text -*-
+* The linker script now support aligning to a Flash sector boundary.
+ The BANK command defines the flash bank name, and contains a list
+ of sector definitions.
+ symbols are defined for "begin", "end" and "size" of a sector.
+
+ An 'ALIGN_SECTOR' command will check the location counter
+ against the defined sectors and if inside a sector, it will
+ align to the sector boundary.
+
+ New commands:
+
+ BANK ( bankname ) { sector_list }
+ SECTOR ( "<size" ) ; - sector definition: valid inside a BANK command
+ ALIGN_SECTOR
+
+ The size parameter is a string containing two elements.
+ A number and a modifier. Valid modifiers are "BYTES", "KB" and "MB".
+ The modifiers are not case sensitive.
+
+ Example:
+
+ BANK ( bank0 ) {
+ SECTOR ("1 KB");
+ SECTOR ("1 KB");
+ SECTOR ("2 KB");
+ }
+
+ SECTIONS
+ {
+ .text : {
+ sector0 = .;
+ ASCIZ "sector0"
+ endstring = .;
+ ALIGN_SECTOR
+ sector1 = .;
+ }
+ }
+
+ sector0 == 0x0000
+ endstring == 0x0008
+ sector1 == 0x0400
+
* The linker script has a new command to insert a timestamp
TIMESTAMP
inserts the current time (seconds since Epoch) as a 64-bit value
--
2.34.1
next prev parent reply other threads:[~2023-03-10 0:08 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-03-10 0:08 [PATCH v1 0/7 SECTOR: Support aligning to flash sector boundary binutils
2023-03-10 0:08 ` binutils [this message]
2023-03-10 0:08 ` [PATCH v1 2/7] SECTOR: ld.texi binutils
2023-03-10 0:08 ` [PATCH v1 3/7] SECTOR: ldlex.l binutils
2023-03-10 0:08 ` [PATCH v1 4/7] SECTOR: ldgram.y binutils
2023-03-10 0:08 ` [PATCH v1 5/7] SECTOR: language additions binutils
2023-03-10 0:08 ` [PATCH v1 6/7] SECTOR: add testsuite binutils
2023-03-10 0:08 ` [PATCH v1 7/7] SECTOR: Makefile.* binutils
2023-03-10 3:46 ` [PATCH v1 0/7 SECTOR: Support aligning to flash sector boundary Alan Modra
2023-03-10 14:13 ` Michael Matz
2023-03-10 17:01 ` Ulf Samuelsson
2023-03-10 17:30 ` Michael Matz
2023-03-10 17:57 ` Ulf Samuelsson
2023-03-13 13:12 ` Michael Matz
2023-03-13 15:29 ` Ulf Samuelsson
2023-03-13 15:54 ` Michael Matz
2023-03-13 17:26 ` Ulf Samuelsson
2023-03-13 17:35 ` Michael Matz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230310000817.751962-2-binutils@emagii.com \
--to=binutils@emagii.com \
--cc=binutils@sourceware.org \
--cc=nickc@redhat.com \
--cc=ulf@emagii.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).