2011-12-23 Tristan Gingold <gingold@adacore.com>
authorTristan Gingold <gingold@adacore.com>
Fri, 23 Dec 2011 09:23:31 +0000 (09:23 +0000)
committerTristan Gingold <gingold@adacore.com>
Fri, 23 Dec 2011 09:23:31 +0000 (09:23 +0000)
* vms-lib.c (vms_traverse_index): Move pointer update code.

bfd/ChangeLog
bfd/vms-lib.c

index d540b30..da1e2a2 100644 (file)
@@ -1,3 +1,7 @@
+2011-12-23  Tristan Gingold  <gingold@adacore.com>
+
+       * vms-lib.c (vms_traverse_index): Move pointer update code.
+
 2011-12-22  DJ Delorie  <dj@redhat.com>
 
        * elf32-rl78.c (rl78_elf_howto_table): Add R_RL78_RH_RELAX.
 2011-12-19  Iain Sandoe  <idsandoe@googlemail.com>
 
        * mach-o-i386.c (bfd_mach_o_section_type_valid_for_tgt): Define NULL.
-       * mach-o-target.c (bfd_mach_o_backend_data): Initialize 
+       * mach-o-target.c (bfd_mach_o_backend_data): Initialize
        bfd_mach_o_section_type_valid_for_tgt
        * mach-o-x86-64.c (bfd_mach_o_section_type_valid_for_x86_64): New.
-       (bfd_mach_o_section_type_valid_for_tgt): Set to 
+       (bfd_mach_o_section_type_valid_for_tgt): Set to
        bfd_mach_o_section_type_valid_for_x86_64.
        * mach-o.c (bfd_mach_o_section_type_name): Reorder and eliminate dup.
        (bfd_mach_o_section_attribute_name): Reorder.
index b325d74..48d656b 100644 (file)
@@ -277,6 +277,9 @@ vms_traverse_index (bfd *abfd, unsigned int vbn, struct carsym_mem *cs)
       if (idx_vbn == 0)
         return FALSE;
 
+      /* Point to the next index entry.  */
+      p = keyname + keylen;
+
       if (idx_off == RFADEF__C_INDEX)
         {
           /* Indirect entry.  Recurse.  */
@@ -368,9 +371,6 @@ vms_traverse_index (bfd *abfd, unsigned int vbn, struct carsym_mem *cs)
                 return FALSE;
             }
         }
-
-      /* Point to the next index entry.  */
-      p = keyname + keylen;
     }
 
   return TRUE;