readelf: Make -t imply -S, for compatibility with GNU binutils.

Reported by:	jhb
Reviewed by:	emaste
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D20475
This commit is contained in:
markj 2019-05-30 18:54:34 +00:00
parent 9c2288c77f
commit b94f1ced81
2 changed files with 4 additions and 2 deletions

View File

@ -24,7 +24,7 @@
.\"
.\" $Id: readelf.1 3642 2018-10-14 14:24:28Z jkoshy $
.\"
.Dd September 13, 2012
.Dd May 30, 2019
.Dt READELF 1
.Os
.Sh NAME
@ -113,6 +113,8 @@ Print symbol tables.
.It Fl t | Fl -section-details
Print additional information about sections, such as the flags
fields in section headers.
Implies
.Fl S .
.It Fl v | Fl -version
Prints a version identifier for
.Nm

View File

@ -7500,7 +7500,7 @@ main(int argc, char **argv)
re->options |= RE_S;
break;
case 't':
re->options |= RE_T;
re->options |= RE_SS | RE_T;
break;
case 'u':
re->options |= RE_U;