cosmetic PT_GNU_STACK patch

Ben Elliston bje@au1.ibm.com
Thu Jun 24 05:55:00 GMT 2004


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:



More information about the Binutils mailing list