1999-05-28 Martin Dorey <mdorey@madge.com>
[binutils-gdb.git] / bfd / elf.c
index ab010d46f4b76d7da9985adef366f4be62c561a4..36a4b6bd1e76df4eb9ebf19531b51997aba06376 100644 (file)
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -1490,13 +1490,13 @@ elf_fake_sections (abfd, asect, failedptrarg)
       this_hdr->sh_type = SHT_DYNAMIC;
       this_hdr->sh_entsize = bed->s->sizeof_dyn;
     }
-  else if (strncmp (asect->name, ".rela", 5) == 0
+  else if (strncmp (asect->name, ".rela.", 6) == 0
           && get_elf_backend_data (abfd)->use_rela_p)
     {
       this_hdr->sh_type = SHT_RELA;
       this_hdr->sh_entsize = bed->s->sizeof_rela;
     }
-  else if (strncmp (asect->name, ".rel", 4) == 0
+  else if (strncmp (asect->name, ".rel.", 5) == 0
           && ! get_elf_backend_data (abfd)->use_rela_p)
     {
       this_hdr->sh_type = SHT_REL;
@@ -3077,6 +3077,9 @@ prep_headers (abfd)
     case bfd_arch_i860:
       i_ehdrp->e_machine = EM_860;
       break;
+    case bfd_arch_i960:
+      i_ehdrp->e_machine = EM_960;
+      break;
     case bfd_arch_mips:        /* MIPS Rxxxx */
       i_ehdrp->e_machine = EM_MIPS;    /* only MIPS R3000 */
       break;