aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorSteve Chamberlain <sac@cygnus>1994-03-09 21:53:54 +0000
committerSteve Chamberlain <sac@cygnus>1994-03-09 21:53:54 +0000
commit9fdf266ccc138d935455a575c69e4ccebe34ded8 (patch)
tree3af88c6df82d2ad364a4348ea8890fa0a9ac6228 /binutils
parent623d4854fcc277fa6581478ffdb88b1073d46263 (diff)
downloadgdb-9fdf266ccc138d935455a575c69e4ccebe34ded8.zip
gdb-9fdf266ccc138d935455a575c69e4ccebe34ded8.tar.gz
gdb-9fdf266ccc138d935455a575c69e4ccebe34ded8.tar.bz2
* ar.c (move_members): Fix it so that the abi positional modifiers
don't delete all archive members following the insert point.
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",