Skip to content

Commit

Permalink
readelf: include notes (-n) and unwind (-u) in --all/-a
Browse files Browse the repository at this point in the history
This matches the GNU and LLVM versions of readelf.

As markj noted in the review -u is not actually implemented yet and has
no effect.  The option is accepted and just ignored.

Reported by:	andrew
Reviewed by:	andrew, markj
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D32003
  • Loading branch information
emaste committed Sep 17, 2021
1 parent ac8af19 commit f161abf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion contrib/elftoolchain/readelf/readelf.1
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
.\"
.\" $Id: readelf.1 3753 2019-06-28 01:13:13Z emaste $
.\"
.Dd October 31, 2020
.Dd September 17, 2021
.Dt READELF 1
.Os
.Sh NAME
Expand Down Expand Up @@ -76,8 +76,10 @@ Turn on the following flags:
.Fl h ,
.Fl I ,
.Fl l ,
.Fl n ,
.Fl r ,
.Fl s ,
.Fl u ,
.Fl A ,
.Fl S
and
Expand Down
2 changes: 1 addition & 1 deletion contrib/elftoolchain/readelf/readelf.c
Original file line number Diff line number Diff line change
Expand Up @@ -7788,7 +7788,7 @@ main(int argc, char **argv)
break;
case 'a':
re->options |= RE_AA | RE_D | RE_G | RE_H | RE_II |
RE_L | RE_R | RE_SS | RE_S | RE_VV;
RE_L | RE_N | RE_R | RE_SS | RE_S | RE_U | RE_VV;
break;
case 'c':
re->options |= RE_C;
Expand Down

0 comments on commit f161abf

Please sign in to comment.