* objdump.c (main) :Accept multiple -M switch.
* doc/binutils.texi: Document that multiple -M switches are accepted and that a single -M switch can contain comma separated options. * arm-dis.c (parse_arm_disassembler_option): Do not expect option string to be NUL terminated. (parse_disassembler_options): Allow options to be space or comma separated.
This commit is contained in:
parent
278a7cf7f0
commit
31e0f3cd45
5 changed files with 37 additions and 33 deletions
|
@ -2661,12 +2661,10 @@ main (argc, argv)
|
|||
break;
|
||||
case 'M':
|
||||
if (disassembler_options)
|
||||
{
|
||||
non_fatal ("multiple separate -M options are not supported.");
|
||||
non_fatal ("please combine them into a single, space separated option.");
|
||||
non_fatal ("ignoring option '-M%s'", disassembler_options);
|
||||
}
|
||||
disassembler_options = optarg;
|
||||
/* Ignore potential memory leak for now. */
|
||||
disassembler_options = concat (disassembler_options, ",", optarg, NULL);
|
||||
else
|
||||
disassembler_options = optarg;
|
||||
break;
|
||||
case 'j':
|
||||
if (only == NULL)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue