summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
b6370ef)
PR binutils/18101
* readelf.c (parse_args): Move nothing to do warning to ...
(main): Here.
+2015-03-10 H.J. Lu <hongjiu.lu@intel.com>
+
+ PR binutils/18101
+ * readelf.c (parse_args): Move nothing to do warning to ...
+ (main): Here.
+
2015-03-10 Nick Clifton <nickc@redhat.com>
PR binutils/18101
2015-03-10 Nick Clifton <nickc@redhat.com>
PR binutils/18101
&& !do_section_groups && !do_archive_index
&& !do_dyn_syms)
usage (stderr);
&& !do_section_groups && !do_archive_index
&& !do_dyn_syms)
usage (stderr);
- else if (argc < 3 || (do_wide && argc < 4))
- {
- warn (_("Nothing to do.\n"));
- usage (stderr);
- }
if (optind < (argc - 1))
show_name = 1;
if (optind < (argc - 1))
show_name = 1;
+ else if (optind >= argc)
+ {
+ warn (_("Nothing to do.\n"));
+ usage (stderr);
+ }
err = 0;
while (optind < argc)
err = 0;
while (optind < argc)