From: Steve Chamberlain Date: Tue, 26 May 1992 23:53:00 +0000 (+0000) Subject: * coff-a29k.c: do byte relocs correctly X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ab98fd5dbc5623f4905267b02a02a83d3401ee0a;p=binutils-gdb.git * coff-a29k.c: do byte relocs correctly * coffcode.h (styp_to_sec_flags): never load INFO sections * seclet.c (rel): don't relocate INFO sections --- diff --git a/bfd/coff-a29k.c b/bfd/coff-a29k.c index 0d5e0ff86a4..4adacdb1af7 100644 --- a/bfd/coff-a29k.c +++ b/bfd/coff-a29k.c @@ -184,7 +184,7 @@ DEFUN(a29k_reloc,(abfd, reloc_entry, symbol_in, data, input_section, output_bfd) abfd->filename); return(bfd_reloc_overflow); } - bfd_put_8(abfd, insn, hit_data); + bfd_put_8(abfd, unsigned_value, hit_data); break; case R_HWORD: insn = bfd_get_16(abfd, hit_data); diff --git a/bfd/seclet.c b/bfd/seclet.c index d13d683f893..e16fa281382 100644 --- a/bfd/seclet.c +++ b/bfd/seclet.c @@ -58,7 +58,8 @@ DEFUN(rel,(abfd, seclet, output_section), asection *output_section) { - if (output_section->flags & SEC_HAS_CONTENTS ) + if (output_section->flags & SEC_HAS_CONTENTS + && !(output_section->flags & SEC_NEVER_LOAD)) { bfd_byte *data = (bfd_byte *)alloca(seclet->size); data = bfd_get_relocated_section_contents(abfd, seclet, data);