aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMontaVista Software, Inc <support@mvista.com>2006-07-21 12:34:21 -0500
committerMark Hatle <mark.hatle@windriver.com>2010-07-22 15:39:23 -0500
commit687632e297dbf5ff76743fe31132252a3bbefa41 (patch)
tree4ab5864a87a78158c15b91332d2003735b295dc3
parentc5f967dca087d4cf8210451383b8f76822e8e366 (diff)
downloadprelink-cross-687632e297dbf5ff76743fe31132252a3bbefa41.tar.gz
prelink-cross-687632e297dbf5ff76743fe31132252a3bbefa41.tar.bz2
prelink-cross-687632e297dbf5ff76743fe31132252a3bbefa41.zip
Import file: prelink-timestamp.patch
Source: MontaVista Software, Inc. Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
-rw-r--r--ChangeLog.cross4
-rw-r--r--src/prelink.c4
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog.cross b/ChangeLog.cross
index 37ebd26..41f5ca8 100644
--- a/ChangeLog.cross
+++ b/ChangeLog.cross
@@ -1,5 +1,9 @@
2006-07-21 MontaVista Software, Inc.
+ * prelink.c: add PRELINK_TIMESTAMP support
+
+2006-07-21 MontaVista Software, Inc.
+
* dso.c: Don't adjust reloc for debug info
2006-06-30 Mark Hatle <mark.hatle@windriver.com>
diff --git a/src/prelink.c b/src/prelink.c
index a828440..a44201a 100644
--- a/src/prelink.c
+++ b/src/prelink.c
@@ -784,7 +784,9 @@ prelink_set_timestamp (struct prelink_info *info)
DSO *dso = info->dso;
if (! verify)
- info->ent->timestamp = (GElf_Word) time (NULL);
+ info->ent->timestamp = getenv ("PRELINK_TIMESTAMP") ?
+ atoi (getenv ("PRELINK_TIMESTAMP"))
+ : (GElf_Word) time (NULL);
dso->info_DT_GNU_PRELINKED = info->ent->timestamp;
if (prelink_set_checksum (dso))
return 1;