aboutsummaryrefslogtreecommitdiff
path: root/bfd/seclet.c
diff options
context:
space:
mode:
authorSteve Chamberlain <sac@cygnus>1993-03-12 16:33:59 +0000
committerSteve Chamberlain <sac@cygnus>1993-03-12 16:33:59 +0000
commitad7009aa914c353f805562b6d06a120587c9eeba (patch)
tree4816203908ea53a6eb19d13c16d826d664a03dd6 /bfd/seclet.c
parentb3df94565ade2d0d1100ddbc6e482e3923f9867e (diff)
downloadgdb-ad7009aa914c353f805562b6d06a120587c9eeba.zip
gdb-ad7009aa914c353f805562b6d06a120587c9eeba.tar.gz
gdb-ad7009aa914c353f805562b6d06a120587c9eeba.tar.bz2
* section.c (bfd_set_section_contents): whitespacs
* seclet.c (seclet_dump_seclet): Don't try and fill sections with no contents.
Diffstat (limited to 'bfd/seclet.c')
-rw-r--r--bfd/seclet.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/bfd/seclet.c b/bfd/seclet.c
index 6102e7d..b2b61bb 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);
}