This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[vms/committed] Fix flags for empty sections


Hi,

this patch remove SEC_HAS_CONTENTS and SEC_RELOC flags on
empty sections.  This makes the output of objdump more
consistent with other platforms.

Committed.

Tristan.

bfd/
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.

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)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]