* elfcode.h (elf_sort_hdrs): Correct SHF_ALLOC test.
(assign_file_positions_except_relocs): Free sorted_hdrs.
This commit is contained in:
parent
abd77746de
commit
6977046f0f
|
@ -1,3 +1,8 @@
|
||||||
|
Fri Jan 27 16:13:42 1995 Ian Lance Taylor <ian@cygnus.com>
|
||||||
|
|
||||||
|
* elfcode.h (elf_sort_hdrs): Correct SHF_ALLOC test.
|
||||||
|
(assign_file_positions_except_relocs): Free sorted_hdrs.
|
||||||
|
|
||||||
Thu Jan 26 09:00:12 1995 Steve Chamberlain <sac@splat>
|
Thu Jan 26 09:00:12 1995 Steve Chamberlain <sac@splat>
|
||||||
|
|
||||||
* srec.c (srec_set_section_contents): Fix off by
|
* srec.c (srec_set_section_contents): Fix off by
|
||||||
|
|
|
@ -2117,6 +2117,8 @@ assign_file_positions_except_relocs (abfd, dosyms)
|
||||||
if (phdr_map == (file_ptr) -1)
|
if (phdr_map == (file_ptr) -1)
|
||||||
return false;
|
return false;
|
||||||
BFD_ASSERT ((bfd_size_type) phdr_map <= (bfd_size_type) phdr_off + phdr_size);
|
BFD_ASSERT ((bfd_size_type) phdr_map <= (bfd_size_type) phdr_off + phdr_size);
|
||||||
|
|
||||||
|
free (sorted_hdrs);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Place the section headers. */
|
/* Place the section headers. */
|
||||||
|
@ -2153,7 +2155,7 @@ elf_sort_hdrs (arg1, arg2)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if ((hdr1->sh_flags & SHF_ALLOC) != 0)
|
if ((hdr2->sh_flags & SHF_ALLOC) != 0)
|
||||||
return 1;
|
return 1;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue