Commit a9d024b8 authored by Andreas Schwab's avatar Andreas Schwab
Browse files

* elf.c (elf_fake_sections): Undo change of 1999-05-10.

parent 06e1ba78
Fri Jun 4 10:05:11 1999 Andreas Schwab <schwab@issan.cs.uni-dortmund.de>
* elf.c (elf_fake_sections): Undo change of 1999-05-10.
Fri Jun 4 03:10:49 1999 J"orn Rennecke <amylaar@cygnus.co.uk>
* elf32-sh.c (sh_elf_relax_delete_bytes): Fix setting of
......
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment