2010-08-04 Tristan Gingold <gingold@adacore.com>
authorTristan Gingold <gingold@adacore.com>
Wed, 4 Aug 2010 08:44:07 +0000 (08:44 +0000)
committerTristan Gingold <gingold@adacore.com>
Wed, 4 Aug 2010 08:44:07 +0000 (08:44 +0000)
* vms-alpha.c (alpha_vms_create_eisd_for_section): Do not make
CODE sections writable.

bfd/ChangeLog
bfd/vms-alpha.c

index c7a1c3f..c653f73 100644 (file)
@@ -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.
index 916c279..1f6e97f 100644 (file)
@@ -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))