public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* cosmetic PT_GNU_STACK patch
@ 2004-06-24  5:55 Ben Elliston
  2004-06-24  6:14 ` Alan Modra
  0 siblings, 1 reply; 3+ messages in thread
From: Ben Elliston @ 2004-06-24  5:55 UTC (permalink / raw)
  To: binutils

The following patch makes it clearer to readelf users that the
PT_GNU_STACK segment type is a GNU extension.  Okay for mainline?

Ben

2004-06-24  Ben Elliston  <bje@au.ibm.com>

       * readelf.c (get_segment_type): Display "GNU_STACK", not just
       "STACK", when a PT_GNU_STACK segment is encountered.

Index: readelf.c
===================================================================
RCS file: /cvs/src/src/binutils/readelf.c,v
retrieving revision 1.244
diff -u -r1.244 readelf.c
--- readelf.c   22 Jun 2004 10:36:15 -0000      1.244
+++ readelf.c   24 Jun 2004 05:51:58 -0000
@@ -2191,7 +2191,7 @@

     case PT_GNU_EH_FRAME:
                        return "GNU_EH_FRAME";
-    case PT_GNU_STACK: return "STACK";
+    case PT_GNU_STACK: return "GNU_STACK";
     case PT_GNU_RELRO:  return "GNU_RELRO";

     default:

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: cosmetic PT_GNU_STACK patch
  2004-06-24  5:55 cosmetic PT_GNU_STACK patch Ben Elliston
@ 2004-06-24  6:14 ` Alan Modra
  2004-06-24  6:23   ` Ben Elliston
  0 siblings, 1 reply; 3+ messages in thread
From: Alan Modra @ 2004-06-24  6:14 UTC (permalink / raw)
  To: Ben Elliston; +Cc: binutils

On Thu, Jun 24, 2004 at 03:56:15PM +1000, Ben Elliston wrote:
>        * readelf.c (get_segment_type): Display "GNU_STACK", not just
>        "STACK", when a PT_GNU_STACK segment is encountered.

OK.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: cosmetic PT_GNU_STACK patch
  2004-06-24  6:14 ` Alan Modra
@ 2004-06-24  6:23   ` Ben Elliston
  0 siblings, 0 replies; 3+ messages in thread
From: Ben Elliston @ 2004-06-24  6:23 UTC (permalink / raw)
  To: binutils

Alan Modra <amodra@bigpond.net.au> writes:

> On Thu, Jun 24, 2004 at 03:56:15PM +1000, Ben Elliston wrote:
> >        * readelf.c (get_segment_type): Display "GNU_STACK", not just
> >        "STACK", when a PT_GNU_STACK segment is encountered.
> 
> OK.

Thanks; committed.

Ben

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-06-24  6:23 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-24  5:55 cosmetic PT_GNU_STACK patch Ben Elliston
2004-06-24  6:14 ` Alan Modra
2004-06-24  6:23   ` Ben Elliston

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).