summaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>1999-05-10 08:36:58 +0000
committerNick Clifton <nickc@redhat.com>1999-05-10 08:36:58 +0000
commit4debac87d11bd6e55dad525e9b57bf4fca077249 (patch)
treed7df34a946af3d4686808d21a2751124d78f85e6 /bfd
parent0db692d430dd689f4d8427774f815c3ea8189d96 (diff)
downloadbinutils-redhat-4debac87d11bd6e55dad525e9b57bf4fca077249.tar.gz
Check for period after .rel{a} when detecting reloc sections.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elf.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 891b6b9051..75cba37037 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -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
diff --git a/bfd/elf.c b/bfd/elf.c
index ab010d46f4..2107281d1a 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;