* coff-a29k.c: do byte relocs correctly
authorSteve Chamberlain <sac@cygnus>
Tue, 26 May 1992 23:53:00 +0000 (23:53 +0000)
committerSteve Chamberlain <sac@cygnus>
Tue, 26 May 1992 23:53:00 +0000 (23:53 +0000)
* coffcode.h (styp_to_sec_flags): never load INFO sections
* seclet.c (rel): don't relocate INFO sections

bfd/coff-a29k.c
bfd/seclet.c

index 0d5e0ff86a42a6302996d76c44bc77b348ae3f8e..4adacdb1af75c70c96492b170b6353de423ed99c 100644 (file)
@@ -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); 
index d13d683f8938443c4f59c9aa2729044f8b78fcbb..e16fa281382d1d894942f3dcb53c7eb0fcb5129e 100644 (file)
@@ -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);