This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[PATCH] readelf needs to accept "-H" option
- From: Bob Wilson <bwilson at tensilica dot com>
- To: binutils at sources dot redhat dot com
- Date: Wed, 12 Feb 2003 13:05:07 -0800
- Subject: [PATCH] readelf needs to accept "-H" option
- Organization: Tensilica, Inc.
readelf is supposed to accept "-H" as the short version of "--help", except
that the 'H' character is missing from the call to getopt_long. Since the
usage message gets printed for both "-H" and for unrecognized options, the
only symptom of this problem is that readelf prints:
readelf: invalid option -- H
Here's a patch to fix it.
2003-02-12 Bob Wilson <bob.wilson@acm.org>
* readelf.c (parse_args): Include 'H' option in call to getopt_long.
Index: readelf.c
===================================================================
RCS file: /cvs/src/src/binutils/readelf.c,v
retrieving revision 1.194
diff -c -3 -r1.194 readelf.c
*** readelf.c 10 Feb 2003 10:44:48 -0000 1.194
--- readelf.c 12 Feb 2003 17:36:05 -0000
***************
*** 2529,2535 ****
usage ();
while ((c = getopt_long
! (argc, argv, "ersuahnldSDAIw::x:i:vVW", options, NULL)) != EOF)
{
char *cp;
int section;
--- 2539,2545 ----
usage ();
while ((c = getopt_long
! (argc, argv, "ersuahnldSDAIw::x:i:vVWH", options, NULL)) != EOF)
{
char *cp;
int section;