Check for period after .rel{a} when detecting reloc sections.
This commit is contained in:
parent
4dec4d4e74
commit
c1f6bc0323
2 changed files with 7 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue