From c26d7d179ce415260e46eba69629d220a439b79c Mon Sep 17 00:00:00 2001 From: Steve Chamberlain Date: Fri, 23 Oct 1992 17:34:37 +0000 Subject: Fri Oct 23 10:32:36 1992 Steve Chamberlain (sac@thepub.cygnus.com) * seclet.c (rel): don't load sections without the SEC_LOAD bit. Thu Oct 15 10:16:35 1992 Steve Chamberlain (sac@thepub.cygnus.com) * coff-m68k.c (m68k_howto2type, SELECT_RELOC): new function to work out a coff relocation type from a howto's attributes rather than using the input r_type field. This fixes PR1677 and allows conversion of a.out relocs to coff relocs. * coffcode.h (coff_write_relocs): if supplied a relocation relative to an absolute symbol, use the right symbol index. * reloc.c (bfd_perform_relocation): do a partial link for coff relocs right. --- bfd/seclet.c | 1 + 1 file changed, 1 insertion(+) (limited to 'bfd/seclet.c') diff --git a/bfd/seclet.c b/bfd/seclet.c index d95a844..c26f7b4 100644 --- a/bfd/seclet.c +++ b/bfd/seclet.c @@ -81,6 +81,7 @@ DEFUN(rel,(abfd, seclet, output_section, data), if (output_section->flags & SEC_HAS_CONTENTS && !(output_section->flags & SEC_NEVER_LOAD) + && (output_section->flags & SEC_LOAD) && seclet->size) { data = (PTR) bfd_get_relocated_section_contents(abfd, seclet, data); -- cgit v1.1