diff options
Diffstat (limited to 'bfd/seclet.c')
-rw-r--r-- | bfd/seclet.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/seclet.c b/bfd/seclet.c index e16fa28..e7fb65c 100644 --- a/bfd/seclet.c +++ b/bfd/seclet.c @@ -59,7 +59,8 @@ DEFUN(rel,(abfd, seclet, output_section), { if (output_section->flags & SEC_HAS_CONTENTS - && !(output_section->flags & SEC_NEVER_LOAD)) + && !(output_section->flags & SEC_NEVER_LOAD) + && seclet->size) { bfd_byte *data = (bfd_byte *)alloca(seclet->size); data = bfd_get_relocated_section_contents(abfd, seclet, data); |