mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-26 17:18:55 +00:00
DIGEST: ldlang.*: add timestamp
Signed-off-by: Ulf Samuelsson <ulf@emagii.com>
This commit is contained in:
committed by
Nick Clifton
parent
c8f8653fa7
commit
bd9466d4aa
@@ -20,6 +20,7 @@
|
||||
|
||||
#include "sysdep.h"
|
||||
#include <limits.h>
|
||||
#include <time.h>
|
||||
#include "bfd.h"
|
||||
#include "libiberty.h"
|
||||
#include "filenames.h"
|
||||
@@ -8520,6 +8521,13 @@ lang_add_string (size_t size, const char *s)
|
||||
free (string);
|
||||
}
|
||||
|
||||
/* Store the time of linking in the image */
|
||||
void
|
||||
lang_add_timestamp (void)
|
||||
{
|
||||
lang_add_data (QUAD, exp_intop ((bfd_vma) time (0)));
|
||||
}
|
||||
|
||||
/* Create a new reloc statement. RELOC is the BFD relocation type to
|
||||
generate. HOWTO is the corresponding howto structure (we could
|
||||
look this up, but the caller has already done so). SECTION is the
|
||||
|
||||
Reference in New Issue
Block a user