summaryrefslogtreecommitdiffstats
path: root/bfd/vms-alpha.c
diff options
context:
space:
mode:
authorTristan Gingold <gingold@adacore.com>2010-06-25 14:54:19 +0000
committerTristan Gingold <gingold@adacore.com>2010-06-25 14:54:19 +0000
commit9714ee486634a00a2f76f9a3879059b77a53d4a5 (patch)
tree2cab5ee93c62d15fab61472b2cf48cb27310c134 /bfd/vms-alpha.c
parentf2c7657e9a0e18772ce4b0a95afd2b6546152b78 (diff)
downloadppe42-binutils-9714ee486634a00a2f76f9a3879059b77a53d4a5.tar.gz
ppe42-binutils-9714ee486634a00a2f76f9a3879059b77a53d4a5.zip
2010-06-25 Tristan Gingold <gingold@adacore.com>
* vms-alpha.c (alpha_vms_write_exec): Set linktime field.
Diffstat (limited to 'bfd/vms-alpha.c')
-rw-r--r--bfd/vms-alpha.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/bfd/vms-alpha.c b/bfd/vms-alpha.c
index 7b543d2027..ab1e3d578c 100644
--- a/bfd/vms-alpha.c
+++ b/bfd/vms-alpha.c
@@ -3007,6 +3007,7 @@ alpha_vms_write_exec (bfd *abfd)
char *module;
unsigned int len;
+ /* Set module name. */
module = vms_get_module_name (bfd_get_filename (abfd), TRUE);
len = strlen (module);
if (len > sizeof (eihi->imgnam) - 1)
@@ -3015,8 +3016,15 @@ alpha_vms_write_exec (bfd *abfd)
memcpy (eihi->imgnam + 1, module, len);
free (module);
}
- bfd_putl32 (0, eihi->linktime + 0);
- bfd_putl32 (0, eihi->linktime + 4);
+ {
+ unsigned int lo;
+ unsigned int hi;
+
+ /* Set time. */
+ vms_get_time (&hi, &lo);
+ bfd_putl32 (lo, eihi->linktime + 0);
+ bfd_putl32 (hi, eihi->linktime + 4);
+ }
eihi->imgid[0] = 0;
eihi->linkid[0] = 0;
eihi->imgbid[0] = 0;
OpenPOWER on IntegriCloud