diff options
author | Tristan Gingold <gingold@adacore.com> | 2010-08-03 09:26:30 +0000 |
---|---|---|
committer | Tristan Gingold <gingold@adacore.com> | 2010-08-03 09:26:30 +0000 |
commit | 562131722825e18cba3a5d7411f9b37e14095e35 (patch) | |
tree | 1b2839a31b492af30402a3ee667f0b65bdf70b6a | |
parent | d833fa0d58f95cf2572a61b52be85f5bf3c1b9a6 (diff) | |
download | gdb-562131722825e18cba3a5d7411f9b37e14095e35.zip gdb-562131722825e18cba3a5d7411f9b37e14095e35.tar.gz gdb-562131722825e18cba3a5d7411f9b37e14095e35.tar.bz2 |
2010-08-03 Tristan Gingold <gingold@adacore.com>
* vms-alpha.c (_bfd_vms_slurp_egsd): Do not set SEC_HAS_CONTENTS
nor SEC_RELOC for empty sections.
-rw-r--r-- | bfd/ChangeLog | 5 | ||||
-rw-r--r-- | bfd/vms-alpha.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 9c6243c..7857e53 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,10 @@ 2010-08-03 Tristan Gingold <gingold@adacore.com> + * vms-alpha.c (_bfd_vms_slurp_egsd): Do not set SEC_HAS_CONTENTS + nor SEC_RELOC for empty sections. + +2010-08-03 Tristan Gingold <gingold@adacore.com> + * vms-alpha.c (evax_section_flags): Fix flags for absolute section. Remove useless parenthesis. diff --git a/bfd/vms-alpha.c b/bfd/vms-alpha.c index fded151..a9160f2 100644 --- a/bfd/vms-alpha.c +++ b/bfd/vms-alpha.c @@ -1145,7 +1145,7 @@ _bfd_vms_slurp_egsd (bfd *abfd) section->size = bfd_getl32 (egps->alloc); new_flags = vms_secflag_by_name (evax_section_flags, name, section->size > 0); - if (!(old_flags & EGPS__V_NOMOD)) + if (!(old_flags & EGPS__V_NOMOD) && section->size > 0) { new_flags |= SEC_HAS_CONTENTS; if (old_flags & EGPS__V_REL) |