Check for period after .rel{a} when detecting reloc sections.
authorNick Clifton <nickc@redhat.com>
Mon, 10 May 1999 08:36:58 +0000 (08:36 +0000)
committerNick Clifton <nickc@redhat.com>
Mon, 10 May 1999 08:36:58 +0000 (08:36 +0000)
bfd/ChangeLog
bfd/elf.c

index 891b6b9051dcb53f98ba4d1285645cf9014dc771..75cba37037bd01dafc36684646cbce3a282d30e6 100644 (file)
@@ -1,3 +1,8 @@
+1999-05-10  Nick Clifton  <nickc@cygnus.com>
+
+       * elf.c (elf_fake_sections): Check for .rel. as start of rel
+       section, not just .rel.  Same for .rela.
+
 1999-05-07  Nick Clifton  <nickc@cygnus.com>
 
        * coff-mcore.c (coff_mcore_relocate_section): Replace assert about
index ab010d46f4b76d7da9985adef366f4be62c561a4..2107281d1a177344a8c02b3d44585559f40402d9 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;