2010-08-03 Tristan Gingold <gingold@adacore.com>
authorTristan Gingold <gingold@adacore.com>
Tue, 3 Aug 2010 09:26:30 +0000 (09:26 +0000)
committerTristan Gingold <gingold@adacore.com>
Tue, 3 Aug 2010 09:26:30 +0000 (09:26 +0000)
* vms-alpha.c (_bfd_vms_slurp_egsd): Do not set SEC_HAS_CONTENTS
nor SEC_RELOC for empty sections.

bfd/ChangeLog
bfd/vms-alpha.c

index 9c6243c6d1a464f019cd6dc1178e12c15ca8a657..7857e535ddcfda9cbbe6b7a0cf12c95803c82a55 100644 (file)
@@ -1,3 +1,8 @@
+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
index fded151055afa129ad8ca99fe460dad3165bb9b6..a9160f20d3c06b9fbda93f8adc64375a79b5ab9a 100644 (file)
@@ -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)