Author: markj
Date: Thu May 30 18:54:34 2019
New Revision: 348443
URL: https://svnweb.freebsd.org/changeset/base/348443

Log:
  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

Modified:
  head/contrib/elftoolchain/readelf/readelf.1
  head/contrib/elftoolchain/readelf/readelf.c

Modified: head/contrib/elftoolchain/readelf/readelf.1
==============================================================================
--- head/contrib/elftoolchain/readelf/readelf.1 Thu May 30 18:44:19 2019        
(r348442)
+++ head/contrib/elftoolchain/readelf/readelf.1 Thu May 30 18:54:34 2019        
(r348443)
@@ -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

Modified: head/contrib/elftoolchain/readelf/readelf.c
==============================================================================
--- head/contrib/elftoolchain/readelf/readelf.c Thu May 30 18:44:19 2019        
(r348442)
+++ head/contrib/elftoolchain/readelf/readelf.c Thu May 30 18:54:34 2019        
(r348443)
@@ -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;
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to