diff options
Diffstat (limited to 'trunk/src/prelink.c')
-rw-r--r-- | trunk/src/prelink.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/trunk/src/prelink.c b/trunk/src/prelink.c index 0d113b7..0798811 100644 --- a/trunk/src/prelink.c +++ b/trunk/src/prelink.c @@ -440,6 +440,7 @@ prelink_prepare (DSO *dso) break; case SHT_DYNAMIC: case SHT_MIPS_REGINFO: + case SHT_MIPS_OPTIONS: /* The same applies to these sections on MIPS. The convention is to put .dynamic and .reginfo near the beginning of the read-only segment, before the program text. No relocations @@ -793,7 +794,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; |