Index: src/gas/config/obj-coff.c =================================================================== --- src.orig/gas/config/obj-coff.c 2009-05-15 13:37:23.000000000 +0200 +++ src/gas/config/obj-coff.c 2009-05-15 16:00:56.123356200 +0200 @@ -1475,6 +1475,7 @@ '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. @@ -1589,6 +1590,10 @@ case 'o': /* STYP_OVER */ as_warn (_("unsupported section attribute '%c'"), attr); break; + case 'y': + flags |= SEC_COFF_NOREAD; + flags &= ~SEC_READONLY; + break; default: as_warn (_("unknown section attribute '%c'"), attr); @@ -1628,7 +1633,8 @@ /* 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); }