From: Steve Chamberlain Date: Fri, 12 Mar 1993 16:33:59 +0000 (+0000) Subject: * section.c (bfd_set_section_contents): whitespacs X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ad7009aa914c353f805562b6d06a120587c9eeba;p=binutils-gdb.git * section.c (bfd_set_section_contents): whitespacs * seclet.c (seclet_dump_seclet): Don't try and fill sections with no contents. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 5a426cc3f41..22c57f52a97 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,9 @@ +Fri Mar 12 08:32:11 1993 Steve Chamberlain (sac@thepub.cygnus.com) + + * section.c (bfd_set_section_contents): whitespace + * seclet.c (seclet_dump_seclet): Don't try and fill sections with + no contents. + Thu Mar 11 19:26:15 1993 david d `zoo' zuhn (zoo at cirdan.cygnus.com) * hosts/go32.h: don't define POSIX_UTIME diff --git a/bfd/seclet.c b/bfd/seclet.c index 6102e7db230..b2b61bbac45 100644 --- a/bfd/seclet.c +++ b/bfd/seclet.c @@ -127,6 +127,11 @@ DEFUN(seclet_dump_seclet,(abfd, seclet, section, data, relocateable), for (i = 1; i < seclet->size; i+=2) { d[i] = seclet->u.fill.value ; } + /* Don't bother to fill in empty sections */ + if (!bfd_get_section_flags(abfd, section) & SEC_HAS_CONTENTS) + { + return true; + } return bfd_set_section_contents(abfd, section, d, seclet->offset, seclet->size); }