summaryrefslogtreecommitdiff
path: root/bfd/peicode.h
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1999-08-08 16:50:27 +0000
committerIan Lance Taylor <ian@airs.com>1999-08-08 16:50:27 +0000
commitcc25477892688831a5ef7ededb626a20fe373cb5 (patch)
tree5839b67d06e9c6deaf1efa051e5ff4c0cdf71c39 /bfd/peicode.h
parentf38ec28d363a78b58bddd491ca65bf5adc4425a6 (diff)
downloadgdb-cc25477892688831a5ef7ededb626a20fe373cb5.tar.gz
1999-08-08 Mumit Khan <khan@xraylith.wisc.edu>
* section.c (SEC_SHARED): Define. * coffcode.h (sec_to_styp_flags): Handle SEC_SHARED. (styp_to_sec_flags): Likewise. * peicode.h (coff_swap_scnhdr_out): Likewise. * bfd-in2.h: Rebuild. 1999-08-08 Ian Lance Taylor <ian@zembu.com> * coffcode.h (coff_classify_symbol): Comment out part of 1999-08-05 change which breaks cygwin DLLs.
Diffstat (limited to 'bfd/peicode.h')
-rw-r--r--bfd/peicode.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/bfd/peicode.h b/bfd/peicode.h
index 3adb2d88773..3737a57f2b5 100644
--- a/bfd/peicode.h
+++ b/bfd/peicode.h
@@ -1239,6 +1239,8 @@ coff_swap_scnhdr_out (abfd, in, out)
flags |= IMAGE_SCN_MEM_READ;
if (! (flags & SEC_READONLY))
flags |= IMAGE_SCN_MEM_WRITE;
+ if (flags & SEC_SHARED)
+ flags |= IMAGE_SCN_MEM_SHARED;
}
bfd_h_put_32(abfd, flags, (bfd_byte *) scnhdr_ext->s_flags);