* ar.c (move_members): Fix it so that the abi positional modifiers

don't delete all archive members following the insert point.
This commit is contained in:
Steve Chamberlain 1994-03-09 21:53:54 +00:00
parent 623d4854fc
commit 9fdf266ccc
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
Wed Mar 9 13:48:11 1994 Steve Chamberlain (sac@jonny.cygnus.com)
* ar.c (move_members): Fix it so that the abi positional modifiers
don't delete all archive members following the insert point.
Tue Mar 8 13:14:43 1994 Steve Chamberlain (sac@jonny.cygnus.com)
* coffgrok.[ch]: New files, understand coff objects.

View File

@ -883,18 +883,21 @@ move_members (files_to_move)
{
/* Move this file to the end of the list - first cut from
where it is. */
bfd *link;
*current_ptr_ptr = current_ptr->next;
/* Now glue to end */
after_bfd = get_pos_bfd (&inarch->next, pos_end);
link = *after_bfd;
*after_bfd = current_ptr;
current_ptr->next = (bfd *) NULL;
current_ptr->next = link;
if (verbose)
printf ("m - %s\n", *files_to_move);
goto next_file;
}
current_ptr_ptr = &((*current_ptr_ptr)->next);
}
fprintf (stderr, "%s: no entry %s in archive %s!\n",