aboutsummaryrefslogtreecommitdiff
path: root/bfd/vms-alpha.c
diff options
context:
space:
mode:
authorTristan Gingold <gingold@adacore.com>2011-08-04 08:13:53 +0000
committerTristan Gingold <gingold@adacore.com>2011-08-04 08:13:53 +0000
commitf1bb0388993cf26aea6903ad47e03c1a189f72ea (patch)
tree0a61b83585f92724514fd036a153b004d970210e /bfd/vms-alpha.c
parent249a777b4c9db937b77ac1ada455db0a325c1de5 (diff)
downloadgdb-f1bb0388993cf26aea6903ad47e03c1a189f72ea.zip
gdb-f1bb0388993cf26aea6903ad47e03c1a189f72ea.tar.gz
gdb-f1bb0388993cf26aea6903ad47e03c1a189f72ea.tar.bz2
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.
Diffstat (limited to 'bfd/vms-alpha.c')
-rw-r--r--bfd/vms-alpha.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/vms-alpha.c b/bfd/vms-alpha.c
index 31dc1fb..8b98560 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)
{