This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[vms/committed]: set linktime
- From: Tristan Gingold <gingold at adacore dot com>
- To: binutils <binutils at sourceware dot org>
- Date: Fri, 25 Jun 2010 16:54:00 +0200
- Subject: [vms/committed]: set linktime
Hi,
this patch fills the linktime field of Alpha VMS executable with the current time.
Committed.
Tristan.
bfd/
2010-06-25 Tristan Gingold <gingold@adacore.com>
* vms-alpha.c (alpha_vms_write_exec): Set linktime field.
*** vms-alpha.c 11 Jun 2010 21:12:11 -0000 1.25
--- vms-alpha.c 25 Jun 2010 14:53:45 -0000
***************
*** 3007,3012 ****
--- 3007,3013 ----
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,3022 ****
memcpy (eihi->imgnam + 1, module, len);
free (module);
}
! bfd_putl32 (0, eihi->linktime + 0);
! bfd_putl32 (0, eihi->linktime + 4);
eihi->imgid[0] = 0;
eihi->linkid[0] = 0;
eihi->imgbid[0] = 0;
--- 3016,3030 ----
memcpy (eihi->imgnam + 1, module, len);
free (module);
}
! {
! 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;