From a4c6f0f519cc353f9f833552d90628c1e348a05d Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Fri, 4 Jun 1999 01:07:38 +0000 Subject: [PATCH] * elf.c (elf_fake_sections): Undo change of 1999-05-10. --- bfd/ChangeLog | 4 ++++ bfd/elf.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index a5d206562..776b14365 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +Fri Jun 4 10:05:11 1999 Andreas Schwab + + * elf.c (elf_fake_sections): Undo change of 1999-05-10. + Fri Jun 4 03:10:49 1999 J"orn Rennecke * elf32-sh.c (sh_elf_relax_delete_bytes): Fix setting of diff --git a/bfd/elf.c b/bfd/elf.c index 1e162b0b5..1ce4d91a2 100644 --- a/bfd/elf.c +++ b/bfd/elf.c @@ -1499,13 +1499,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.", 6) == 0 + else if (strncmp (asect->name, ".rela", 5) == 0 && get_elf_backend_data (abfd)->may_use_rela_p) { this_hdr->sh_type = SHT_RELA; this_hdr->sh_entsize = bed->s->sizeof_rela; } - else if (strncmp (asect->name, ".rel.", 5) == 0 + else if (strncmp (asect->name, ".rel", 4) == 0 && get_elf_backend_data (abfd)->may_use_rel_p) { this_hdr->sh_type = SHT_REL; -- 2.11.4.GIT