2009-05-17 Kai Tietz <kai.tietz@onevision.com>
authorKai Tietz <kai.tietz@onevision.com>
Sun, 17 May 2009 20:09:02 +0000 (20:09 +0000)
committerKai Tietz <kai.tietz@onevision.com>
Sun, 17 May 2009 20:09:02 +0000 (20:09 +0000)
        * config/obj-coff.c (obj_coff_section): Add 'y' as
        specifier for SEC_COFF_NOREAD section flag.
        * doc/as.texinfo: Add documentation about .section flag 'y'.

gas/ChangeLog
gas/config/obj-coff.c
gas/doc/as.texinfo

index 1c1fbb2bb4cce363cb4038b252f0ae0012ba8ee5..907c5d6e892ab3fcb95de5ce8fcb020179a0848d 100644 (file)
@@ -1,3 +1,9 @@
+2009-05-17  Kai Tietz  <kai.tietz@onevision.com>
+
+        * config/obj-coff.c (obj_coff_section): Add 'y' as
+        specifier for SEC_COFF_NOREAD section flag.
+       * doc/as.texinfo: Add documentation about .section flag 'y'.
+
 2009-05-13  DJ Delorie  <dj@redhat.com>
 
        * cgen.c (gas_cgen_parse_operand): Guard against NULL pointers.
index 4bcede6ee2a577083a94831f3fcbf405fc1c967c..b2f455818fe61bef7ebcbfc9687868e69e381e37 100644 (file)
@@ -1475,6 +1475,7 @@ coff_frob_file_after_relocs (void)
                                                  'x' for text
                                                 'r' for read-only data
                                                 's' for shared data (PE)
+                                                'y' for noread
    But if the argument is not a quoted string, treat it as a
    subsegment number.
 
@@ -1584,6 +1585,10 @@ obj_coff_section (int ignore ATTRIBUTE_UNUSED)
                    flags |= SEC_READONLY;
                  break;
 
+               case 'y':
+                 flags |= SEC_COFF_NOREAD | SEC_READONLY;
+                 break;
+
                case 'i': /* STYP_INFO */
                case 'l': /* STYP_LIB */
                case 'o': /* STYP_OVER */
@@ -1628,7 +1633,8 @@ obj_coff_section (int ignore ATTRIBUTE_UNUSED)
       /* This section's attributes have already been set.  Warn if the
          attributes don't match.  */
       flagword matchflags = (SEC_ALLOC | SEC_LOAD | SEC_READONLY | SEC_CODE
-                            | SEC_DATA | SEC_COFF_SHARED | SEC_NEVER_LOAD);
+                            | SEC_DATA | SEC_COFF_SHARED | SEC_NEVER_LOAD
+                            | SEC_COFF_NOREAD);
       if ((flags ^ oldflags) & matchflags)
        as_warn (_("Ignoring changed section attributes for %s"), name);
     }
index 0968a29e3e228bb11a2a132d4dbdeb91a6700585..9871fe279327a71cfb3cf860793eb40a10845037 100644 (file)
@@ -5726,6 +5726,8 @@ executable section
 shared section (meaningful for PE targets)
 @item a
 ignored.  (For compatibility with the ELF version)
+@item y
+section is not readable (meaningful for PE targets)
 @end table
 
 If no flags are specified, the default flags depend upon the section name.  If
This page took 0.032252 seconds and 4 git commands to generate.