aboutsummaryrefslogtreecommitdiff
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
commitbd826630b1258af33355c6d6906ce42111b2f8fb (patch)
tree0f6f9940b078ecb7cf94a0b8748ce79d3835a089 /bfd/peicode.h
parent153b546a7abff2e8a966718a0dfa784a64975877 (diff)
downloadgdb-bd826630b1258af33355c6d6906ce42111b2f8fb.zip
gdb-bd826630b1258af33355c6d6906ce42111b2f8fb.tar.gz
gdb-bd826630b1258af33355c6d6906ce42111b2f8fb.tar.bz2
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 3adb2d8..3737a57 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);