From: Tristan Gingold Date: Wed, 4 Aug 2010 08:44:07 +0000 (+0000) Subject: 2010-08-04 Tristan Gingold X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2e09dbaeac673bf3617b76860c0fda5ba2acb306;p=binutils-gdb.git 2010-08-04 Tristan Gingold * vms-alpha.c (alpha_vms_create_eisd_for_section): Do not make CODE sections writable. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index c7a1c3f1bc3..c653f7350ac 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2010-08-04 Tristan Gingold + + * vms-alpha.c (alpha_vms_create_eisd_for_section): Do not make + CODE sections writable. + 2010-08-04 Tristan Gingold * vms-alpha.c (alpha_vms_add_lw_fixup): Renamed to ... diff --git a/bfd/vms-alpha.c b/bfd/vms-alpha.c index 916c279fac0..1f6e97fde57 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))