attributes when a directive has no valid flags or the "w" flag is
used. This default should be appropriate for most. */
#ifndef TC_COFF_SECTION_DEFAULT_ATTRIBUTES
-#define TC_COFF_SECTION_DEFAULT_ATTRIBUTES (SEC_LOAD | SEC_DATA)
+#define TC_COFF_SECTION_DEFAULT_ATTRIBUTES (SEC_ALLOC | SEC_LOAD | SEC_DATA)
#endif
/* This is used to hold the symbol built by a sequence of pseudo-ops
case 'n':
/* Section not loaded. */
flags &=~ SEC_LOAD;
+ if (!is_bss)
+ flags &= ~SEC_ALLOC;
flags |= SEC_NEVER_LOAD;
load_removed = 1;
break;
/* Data section. */
flags |= SEC_DATA;
if (! load_removed)
- flags |= SEC_LOAD;
+ flags |= SEC_LOAD | SEC_ALLOC;
flags &=~ SEC_READONLY;
break;
otherwise set the SEC_DATA flag. */
flags |= (attr == 'x' || (flags & SEC_CODE) ? SEC_CODE : SEC_DATA);
if (! load_removed)
- flags |= SEC_LOAD;
+ flags |= SEC_LOAD | SEC_ALLOC;
/* Note - the READONLY flag is set here, even for the 'x'
attribute in order to be compatible with the MSVC
linker. */