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'.
This commit is contained in:
parent
60a7d074bf
commit
63ad59ae8b
3 changed files with 15 additions and 1 deletions
|
@ -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.
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue