aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorTristan Gingold <gingold@adacore.com>2010-08-04 08:44:07 +0000
committerTristan Gingold <gingold@adacore.com>2010-08-04 08:44:07 +0000
commit2e09dbaeac673bf3617b76860c0fda5ba2acb306 (patch)
tree741659d65866ae48dc366c138bae9a477e1290ea /bfd
parent5369db0a6f2a8a0bec995672144ba15b5661dd72 (diff)
downloadgdb-2e09dbaeac673bf3617b76860c0fda5ba2acb306.zip
gdb-2e09dbaeac673bf3617b76860c0fda5ba2acb306.tar.gz
gdb-2e09dbaeac673bf3617b76860c0fda5ba2acb306.tar.bz2
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')
-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))