public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [patch]: vms-alpha: properly round linkage_index
@ 2011-08-04  8:14 Tristan Gingold
  0 siblings, 0 replies; only message in thread
From: Tristan Gingold @ 2011-08-04  8:14 UTC (permalink / raw)
  To: binutils Development

Hi,

as the linkage_index was not properly rounded, VMS linker emits an error message in some cases.

Fixed by this patch, committed on trunk.

Tristan.

bfd/
2011-08-04  Tristan Gingold  <gingold@adacore.com>

	* vms-alpha.c (_bfd_vms_write_eeom): Round vms_linkage_index.
	(_bfd_vms_write_etir): Initialize vms_linkage_index to 0.

RCS file: /cvs/src/src/bfd/vms-alpha.c,v
retrieving revision 1.51
diff -c -r1.51 vms-alpha.c
*** vms-alpha.c	11 Jul 2011 15:03:07 -0000	1.51
--- vms-alpha.c	4 Aug 2011 08:13:16 -0000
***************
*** 2660,2666 ****
    _bfd_vms_output_alignment (recwr, 2);
  
    _bfd_vms_output_begin (recwr, EOBJ__C_EEOM);
!   _bfd_vms_output_long (recwr, (unsigned long) (PRIV (vms_linkage_index) >> 1));
    _bfd_vms_output_byte (recwr, 0);	/* Completion code.  */
    _bfd_vms_output_byte (recwr, 0);	/* Fill byte.  */
  
--- 2660,2666 ----
  
    _bfd_vms_output_begin (recwr, EOBJ__C_EEOM);
!   _bfd_vms_output_long (recwr, PRIV (vms_linkage_index + 1) >> 1);
    _bfd_vms_output_byte (recwr, 0);	/* Completion code.  */
    _bfd_vms_output_byte (recwr, 0);	/* Fill byte.  */
  
***************
*** 3736,3742 ****
  
    _bfd_vms_output_alignment (recwr, 4);
  
!   PRIV (vms_linkage_index) = 1;
  
    for (section = abfd->sections; section; section = section->next)
      {
--- 3736,3742 ----
  
    _bfd_vms_output_alignment (recwr, 4);
  
!   PRIV (vms_linkage_index) = 0;
  
    for (section = abfd->sections; section; section = section->next)
      {

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-08-04  8:14 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-04  8:14 [patch]: vms-alpha: properly round linkage_index Tristan Gingold

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).