aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/vms-alpha.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index c7a1c3f..c653f73 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,10 @@
2010-08-04 Tristan Gingold <gingold@adacore.com>
+ * vms-alpha.c (alpha_vms_create_eisd_for_section): Do not make
+ CODE sections writable.
+
+2010-08-04 Tristan Gingold <gingold@adacore.com>
+
* vms-alpha.c (alpha_vms_add_lw_fixup): Renamed to ...
(alpha_vms_add_fixup_lr): ... this for consistency.
(alpha_vms_add_qw_fixup): Removed.
diff --git a/bfd/vms-alpha.c b/bfd/vms-alpha.c
index 916c279..1f6e97f 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))