aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog5
-rw-r--r--binutils/ar.c5
2 files changed, 9 insertions, 1 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 8f7f1da..f7e7e36 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -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.
diff --git a/binutils/ar.c b/binutils/ar.c
index b968c89..1949171 100644
--- a/binutils/ar.c
+++ b/binutils/ar.c
@@ -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",