From 9714ee486634a00a2f76f9a3879059b77a53d4a5 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Fri, 25 Jun 2010 14:54:19 +0000 Subject: 2010-06-25 Tristan Gingold * vms-alpha.c (alpha_vms_write_exec): Set linktime field. --- bfd/ChangeLog | 4 ++++ bfd/vms-alpha.c | 12 ++++++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) (limited to 'bfd') diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 0153119..d0b37bc 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2010-06-25 Tristan Gingold + + * vms-alpha.c (alpha_vms_write_exec): Set linktime field. + 2010-06-25 Alan Modra * elf64-ppc.c (toc_skip_enum): Define. diff --git a/bfd/vms-alpha.c b/bfd/vms-alpha.c index 7b543d2..ab1e3d5 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; -- cgit v1.1