From 2511bbd6c890184567620c9e2bf94014d3ae771c Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Thu, 4 Aug 2011 08:13:53 +0000 Subject: [PATCH] 2011-08-04 Tristan Gingold * vms-alpha.c (_bfd_vms_write_eeom): Round vms_linkage_index. (_bfd_vms_write_etir): Initialize vms_linkage_index to 0. --- bfd/ChangeLog | 5 +++++ bfd/vms-alpha.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 825487dbc..85ef26018 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2011-08-04 Tristan Gingold + + * vms-alpha.c (_bfd_vms_write_eeom): Round vms_linkage_index. + (_bfd_vms_write_etir): Initialize vms_linkage_index to 0. + 2011-08-03 Tristan Gingold * mach-o.c (bfd_mach_o_canonicalize_symtab): Handle no symbols case. diff --git a/bfd/vms-alpha.c b/bfd/vms-alpha.c index 31dc1fb61..8b9856074 100644 --- a/bfd/vms-alpha.c +++ b/bfd/vms-alpha.c @@ -2660,7 +2660,7 @@ _bfd_vms_write_eeom (bfd *abfd) _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_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,7 +3736,7 @@ _bfd_vms_write_etir (bfd * abfd, int objtype ATTRIBUTE_UNUSED) _bfd_vms_output_alignment (recwr, 4); - PRIV (vms_linkage_index) = 1; + PRIV (vms_linkage_index) = 0; for (section = abfd->sections; section; section = section->next) { -- 2.11.4.GIT