summaryrefslogtreecommitdiff
path: root/bfd/vms-alpha.c
diff options
context:
space:
mode:
authorTristan Gingold <gingold@adacore.com>2010-08-04 08:44:06 +0000
committerTristan Gingold <gingold@adacore.com>2010-08-04 08:44:06 +0000
commit84cbeb8e5fef3899f9a295821eb9754ac9b8cec4 (patch)
tree15cb06906d1d890796cdac1329e70ef43359ddf0 /bfd/vms-alpha.c
parentb30f8ab804fb2b46233e6e4137aa3138dbe42414 (diff)
downloadbinutils-redhat-84cbeb8e5fef3899f9a295821eb9754ac9b8cec4.tar.gz
2010-08-04 Tristan Gingold <gingold@adacore.com>
* vms-alpha.c (alpha_vms_create_eisd_for_section): Do not make CODE sections writable.
Diffstat (limited to 'bfd/vms-alpha.c')
-rw-r--r--bfd/vms-alpha.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/vms-alpha.c b/bfd/vms-alpha.c
index 916c279fac..1f6e97fde5 100644
--- a/bfd/vms-alpha.c
+++ b/bfd/vms-alpha.c
@@ -2901,7 +2901,7 @@ alpha_vms_create_eisd_for_section (bfd *abfd, asection *sec)
if (sec->flags & SEC_CODE)
eisd->u.eisd.flags |= EISD__M_EXE;
- if (!(sec->flags & SEC_READONLY))
+ else if (!(sec->flags & SEC_READONLY))
eisd->u.eisd.flags |= EISD__M_WRT | EISD__M_CRF;
if (!(sec->flags & SEC_LOAD))