support multiple options to the -w switch
This commit is contained in:
parent
05d2d07e5f
commit
f662939a0d
2 changed files with 45 additions and 36 deletions
|
@ -1,3 +1,8 @@
|
|||
2001-10-13 Nick Clifton <nickc@cambridge.redhat.com>
|
||||
|
||||
* readelf.c (parse_args): Handle multiple options to the -w
|
||||
switch.
|
||||
|
||||
2001-10-12 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
* readelf.c (get_section_type_name): Don't print SHT_ prefix for
|
||||
|
|
|
@ -2202,8 +2202,12 @@ parse_args (argc, argv)
|
|||
do_debugging = 1;
|
||||
else
|
||||
{
|
||||
unsigned int index = 0;
|
||||
|
||||
do_debugging = 0;
|
||||
switch (optarg[0])
|
||||
|
||||
while (optarg[index])
|
||||
switch (optarg[index++])
|
||||
{
|
||||
case 'i':
|
||||
case 'I':
|
||||
|
|
Loading…
Reference in a new issue