[PATCH v1 4/6] ld:TIMESTAMP info

binutils@emagii.com binutils@emagii.com
Tue Oct 7 12:39:35 GMT 2025


From: Ulf Samuelsson <ulf@emagii.com>

Signed-off-by: Ulf Samuelsson <ulf@emagii.com>
---
 ld/ld.texi | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/ld/ld.texi b/ld/ld.texi
index cf750d15259..b4655d6e269 100644
--- a/ld/ld.texi
+++ b/ld/ld.texi
@@ -5787,6 +5787,8 @@ C identifiers because they contain a @samp{.} character.
 @kindex LONG(@var{expression})
 @kindex QUAD(@var{expression})
 @kindex SQUAD(@var{expression})
+@kindex TIMESTAMP
+
 You can include explicit bytes of data in an output section by using
 @code{BYTE}, @code{SHORT}, @code{LONG}, @code{QUAD}, or @code{SQUAD} as
 an output section command.  Each keyword is followed by an expression in
@@ -5830,6 +5832,9 @@ For example, this string of 16 characters will create a 17 byte area
   ASCIZ "This is 16 bytes"
 @end smallexample
 
+The @code{TIMESTAMP} command creates 64-bit integer with the number of seconds
+since Epoch (1970-01-01 00:00).
+
 Note---these commands only work inside a section description and not
 between them, so the following will produce an error from the linker:
 @smallexample
-- 
2.17.1



More information about the Binutils mailing list