svn commit: r348717 - stable/12/contrib/elftoolchain/readelf

Mark Johnston markj at FreeBSD.org
Thu Jun 6 03:01:55 UTC 2019


Author: markj
Date: Thu Jun  6 03:01:52 2019
New Revision: 348717
URL: https://svnweb.freebsd.org/changeset/base/348717

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

Modified:
  stable/12/contrib/elftoolchain/readelf/readelf.1
  stable/12/contrib/elftoolchain/readelf/readelf.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/contrib/elftoolchain/readelf/readelf.1
==============================================================================
--- stable/12/contrib/elftoolchain/readelf/readelf.1	Thu Jun  6 03:01:05 2019	(r348716)
+++ stable/12/contrib/elftoolchain/readelf/readelf.1	Thu Jun  6 03:01:52 2019	(r348717)
@@ -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: stable/12/contrib/elftoolchain/readelf/readelf.c
==============================================================================
--- stable/12/contrib/elftoolchain/readelf/readelf.c	Thu Jun  6 03:01:05 2019	(r348716)
+++ stable/12/contrib/elftoolchain/readelf/readelf.c	Thu Jun  6 03:01:52 2019	(r348717)
@@ -7471,7 +7471,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;


More information about the svn-src-all mailing list