From: Nick Clifton Date: Mon, 10 May 1999 08:36:58 +0000 (+0000) Subject: Check for period after .rel{a} when detecting reloc sections. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c1f6bc0323fdfa8cb6a885c01053eceb7fe46cd6;p=binutils-gdb.git Check for period after .rel{a} when detecting reloc sections. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 891b6b9051d..75cba37037b 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +1999-05-10 Nick Clifton + + * elf.c (elf_fake_sections): Check for .rel. as start of rel + section, not just .rel. Same for .rela. + 1999-05-07 Nick Clifton * coff-mcore.c (coff_mcore_relocate_section): Replace assert about diff --git a/bfd/elf.c b/bfd/elf.c index ab010d46f4b..2107281d1a1 100644 --- 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;