summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;