[PATCH v5 02/10] DIGEST: NEWS
binutils@emagii.com
binutils@emagii.com
Wed Feb 22 16:16:01 GMT 2023
From: Ulf Samuelsson <ulf@emagii.com>
Add info on
DEBUG [ON|OFF]
TIMESTAMP
DIGEST commands
Signed-off-by: Ulf Samuelsson <ulf@emagii.com>
---
ld/NEWS | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 54 insertions(+)
diff --git a/ld/NEWS b/ld/NEWS
index 4b91f2c3b0a..774ccc732ae 100644
--- a/ld/NEWS
+++ b/ld/NEWS
@@ -1,5 +1,59 @@
-*- text -*-
+* The linker script has a new command to insert a timestamp
+ TIMESTAMP
+ inserts the current time (seconds since Epoch) as a 64-bit value
+
+* The linker script syntax has new commands for debugging a linker script
+ DEBUG ON turns on debugging
+ DEBUG OFF turns off debugging
+
+* The linker script syntax has new commands for handling CRC-32/64 calculations
+ on the '.text' section
+ It uses code from https://www.libcrc.org/
+
+ DIGEST "CRC32" (start, end)
+ DIGEST "CRC64-ECMA" (start, end)
+ DIGEST "CRC64-ISO" (start, end)
+ DIGEST "CRC64-WE" (start, end)
+ DIGEST POLY (size, polynome)(start, end)
+ DIGEST POLYI(size, polynome)(start, end) (inversion during CRC calculation)
+ DIGEST TABLE
+ DIGEST SECTION "<section>
+
+ The CRC32, CRC64-ECMA, CRC64-ISO, CRC64-WE, POLY and POLYI defines
+ the polynome to use and reserves space for the 32/64-bit CRC in the
+ '.text' section.
+ The user can do the CRC check in another section through the
+ DIGEST SECTION command.
+
+ The 32 bit DIGEST <polynome> command defines some global symbols.
+ ___CRC32___ is the address of the CRC64 checksum
+ ___CRC32_START___ is the address where CRC calculation starts
+ ___CRC32_END___ The CRC calculation ends before this address.
+
+ The 64-bit DIGEST <polynome> command defines some global symbols.
+ ___CRC64___ is the address of the CRC64 checksum
+ ___CRC64_START___ is the address where CRC calculation starts
+ ___CRC64_END___ The CRC calculation ends before this address.
+
+ All three symbols must refer to addresses in the selected section.
+ If they are defined at the end of the linking process, then
+ the CRC## will be calculated between
+
+ ___CRC##_START___ .. ___CRC##_END___ -1
+
+ and the result will be inserted at ___CRC##___.
+
+ ___CRC##___ must be outside the region where CRC is calculated
+
+ The DIGEST TABLE command generates a table for CRC generation.
+ A table is not neccessary, but will speed up the calculation and makes it
+ compatible with the CRC check routines at https://www.libcrc.org/
+ It defines the ___CRC##_TABLE___ symbol at the start of the table.
+ The user may choose to add this table to his code instead of using
+ the linker.
+
* The linker script syntax has two new commands for inserting text into output
sections:
ASCII (<size>) "string"
--
2.34.1
More information about the Binutils
mailing list