From 562131722825e18cba3a5d7411f9b37e14095e35 Mon Sep 17 00:00:00 2001 From: Tristan Gingold Date: Tue, 3 Aug 2010 09:26:30 +0000 Subject: [PATCH] 2010-08-03 Tristan Gingold * vms-alpha.c (_bfd_vms_slurp_egsd): Do not set SEC_HAS_CONTENTS nor SEC_RELOC for empty sections. --- bfd/ChangeLog | 5 +++++ bfd/vms-alpha.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 9c6243c6d1a..7857e535ddc 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2010-08-03 Tristan Gingold + + * vms-alpha.c (_bfd_vms_slurp_egsd): Do not set SEC_HAS_CONTENTS + nor SEC_RELOC for empty sections. + 2010-08-03 Tristan Gingold * vms-alpha.c (evax_section_flags): Fix flags for absolute diff --git a/bfd/vms-alpha.c b/bfd/vms-alpha.c index fded151055a..a9160f20d3c 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) -- 2.30.2