* ar.c (main): Don't crash if called with no arguments
or only '-X32_64' as an argument.
This commit is contained in:
parent
bc4466dcf1
commit
8d72000704
@ -1,3 +1,8 @@
|
|||||||
|
2000-08-11 Geoff Keating <geoffk@cygnus.com>
|
||||||
|
|
||||||
|
* ar.c (main): Don't crash if called with no arguments
|
||||||
|
or only '-X32_64' as an argument.
|
||||||
|
|
||||||
2000-08-05 Jason Eckhardt <jle@cygnus.com>
|
2000-08-05 Jason Eckhardt <jle@cygnus.com>
|
||||||
|
|
||||||
* readelf.c (elf/i860.h): Include.
|
* readelf.c (elf/i860.h): Include.
|
||||||
|
@ -437,7 +437,7 @@ main (argc, argv)
|
|||||||
of object files in the archive (the 64-bit objects
|
of object files in the archive (the 64-bit objects
|
||||||
or the 32-bit objects). GNU ar always looks at all
|
or the 32-bit objects). GNU ar always looks at all
|
||||||
kinds of objects in an archive. */
|
kinds of objects in an archive. */
|
||||||
while (strcmp (argv[1], "-X32_64") == 0)
|
while (argc > 1 && strcmp (argv[1], "-X32_64") == 0)
|
||||||
{
|
{
|
||||||
argv++;
|
argv++;
|
||||||
argc--;
|
argc--;
|
||||||
|
Loading…
Reference in New Issue
Block a user