This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: Add -N to readelf to display section name


On Fri, Apr 01, 2005 at 12:25:46PM +0100, Nick Clifton wrote:
> Hi Alan,
> 
> >>I realise that the patch has already been applied, but it seems to me 
> >>that adding a new switch to control the displaying of the full section 
> >>name is wrong - I think that this ought to be controlled by the already 
> >>existing "--wide" switch.  ie if you specify --wide on the command line 
> >>you get the full section names and wider-than-80-character output, 
> >>whereas if you omit the switch you get possibly truncated section names 
> >>and restricted-to-a-maximum-of-80-characters output.
> 
> >I think this was discussed before, with someone making a point that
> >--wide is supposed to not split output lines.  HJ's patch puts the
> >section name on a separate line.
> 
> Ah - OK - thanks for the explanation.
> 
> By the way, just being picky, but shouldn't a new switch like this be 
> documented in binutils/doc/binutils.texi and mentioned in 
> binutils/NEWS... ? :-)
> 

Here is the patch. I also added -g.


H.J.
-----
2005-04-01  H.J. Lu  <hongjiu.lu@intel.com>

	* NEWS: Mention new readelf options, "-N/--full-section-name"
	and "-g/--section-groups".

	* doc/binutils.texi: Document new readelf options,
	"-N/--full-section-name" and "-g/--section-groups".

--- binutils/NEWS.nn	2005-03-30 19:49:08.000000000 -0800
+++ binutils/NEWS	2005-04-01 06:35:19.744280021 -0800
@@ -1,5 +1,7 @@
 -*- text -*-
 
+* Add "-N/--full-section-name" to readelf to display full section name.
+
 * Add "-M entry:<addr>" switch to objdump to specify a function entry address
   when disassembling VAX binaries.
 
@@ -8,6 +10,8 @@
 
 Changes in 2.16:
 
+* Add "-g/--section-groups" to readelf to display section group.
+
 * objcopy recognizes two new options --strip-unneeded-symbol and
   --strip-unneeded-symbols, namely for use together with the wildcard
   matching the original --strip-symbol/--strip-symbols provided, but
--- binutils/doc/binutils.texi.nn	2005-03-30 19:49:09.000000000 -0800
+++ binutils/doc/binutils.texi	2005-04-01 06:41:00.358170821 -0800
@@ -3242,6 +3242,8 @@ readelf [@option{-a}|@option{--all}] 
         [@option{-h}|@option{--file-header}]
         [@option{-l}|@option{--program-headers}|@option{--segments}]
         [@option{-S}|@option{--section-headers}|@option{--sections}]
+        [@option{-g}|@option{--section-groups}]
+        [@option{-N}|@option{--full-section-name}]
         [@option{-e}|@option{--headers}]
         [@option{-s}|@option{--syms}|@option{--symbols}]
         [@option{-n}|@option{--notes}]
@@ -3312,6 +3314,17 @@ has any.
 Displays the information contained in the file's section headers, if it
 has any.
 
+@item -g
+@itemx --section-groups
+@cindex ELF section group information
+Displays the information contained in the file's section groups, if it
+has any.
+
+@item -N
+@itemx --full-section-name
+@cindex ELF section name information
+Displays the full section name for @option{-S}.
+
 @item -s
 @itemx --symbols
 @itemx --syms


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]