From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4411 invoked by alias); 1 Apr 2005 14:45:37 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sources.redhat.com Received: (qmail 4173 invoked from network); 1 Apr 2005 14:45:22 -0000 Received: from unknown (HELO rwcrmhc11.comcast.net) (204.127.198.35) by sourceware.org with SMTP; 1 Apr 2005 14:45:22 -0000 Received: from lucon.org ([24.6.212.230]) by comcast.net (rwcrmhc11) with ESMTP id <2005040114451901300dngb5e>; Fri, 1 Apr 2005 14:45:19 +0000 Received: by lucon.org (Postfix, from userid 1000) id 9EFCE97E5A; Fri, 1 Apr 2005 06:45:20 -0800 (PST) Date: Fri, 01 Apr 2005 14:45:00 -0000 From: "H. J. Lu" To: Nick Clifton Cc: Alan Modra , Andreas Schwab , binutils@sources.redhat.com Subject: Re: PATCH: Add -N to readelf to display section name Message-ID: <20050401144520.GA28643@lucon.org> References: <20050331210639.GA9469@lucon.org> <20050331225627.GA11433@lucon.org> <20050331234925.GB20449@bubble.modra.org> <424D28BB.80104@redhat.com> <20050401111316.GI27909@bubble.modra.org> <424D2FBA.6090704@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <424D2FBA.6090704@redhat.com> User-Agent: Mutt/1.4.1i X-SW-Source: 2005-04/txt/msg00039.txt.bz2 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 * 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:" 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