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]

cosmetic PT_GNU_STACK patch


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:


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