mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-11-23 18:14:13 +08:00
PR binutils/12558
* ar.c (main): When asked to move members in an archive that is being created, ignore the move request.
This commit is contained in:
parent
5f4cb1986d
commit
75d5a45f82
@ -1,3 +1,9 @@
|
||||
2011-06-30 Nick Clifton <nickc@redhat.com>
|
||||
|
||||
PR binutils/12558
|
||||
* ar.c (main): When asked to move members in an archive that is
|
||||
being created, ignore the move request.
|
||||
|
||||
2011-06-29 Nick Clifton <nickc@redhat.com>
|
||||
|
||||
* readelf.c (get_section_type_name): When displaying an unknown
|
||||
|
@ -745,11 +745,17 @@ main (int argc, char **argv)
|
||||
break;
|
||||
|
||||
case move:
|
||||
if (files != NULL)
|
||||
move_members (arch, files);
|
||||
else
|
||||
output_filename = NULL;
|
||||
break;
|
||||
/* PR 12558: Creating and moving at the same time does
|
||||
not make sense. Just create the archive instead. */
|
||||
if (! silent_create)
|
||||
{
|
||||
if (files != NULL)
|
||||
move_members (arch, files);
|
||||
else
|
||||
output_filename = NULL;
|
||||
break;
|
||||
}
|
||||
/* Fall through. */
|
||||
|
||||
case replace:
|
||||
case quick_append:
|
||||
|
Loading…
Reference in New Issue
Block a user