+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.
'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.
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 */
/* 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);
}
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