Index: bfd/coffcode.h =================================================================== RCS file: /cvs/src/src/bfd/coffcode.h,v retrieving revision 1.90 diff -c -3 -p -r1.90 coffcode.h *** bfd/coffcode.h 24 Apr 2003 12:36:06 -0000 1.90 --- bfd/coffcode.h 30 May 2003 12:26:31 -0000 *************** styp_to_sec_flags (abfd, hdr, name, sect *** 602,612 **** sec_flags |= SEC_CLINK; #endif - #ifdef STYP_NOLOAD - if (styp_flags & STYP_NOLOAD) - sec_flags |= SEC_NEVER_LOAD; - #endif /* STYP_NOLOAD */ - /* For 386 COFF, at least, an unloadable text or data section is actually a shared library section. */ if (styp_flags & STYP_TEXT) --- 602,607 ---- *************** styp_to_sec_flags (abfd, hdr, name, sect *** 713,718 **** --- 708,718 ---- if (strncmp (name, ".gnu.linkonce", sizeof ".gnu.linkonce" - 1) == 0) sec_flags |= SEC_LINK_ONCE | SEC_LINK_DUPLICATES_DISCARD; #endif + + #ifdef STYP_NOLOAD + if (styp_flags & STYP_NOLOAD) + sec_flags &= ~SEC_LOAD; + #endif /* STYP_NOLOAD */ if (flags_ptr == NULL) return FALSE;