mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-24 12:23:31 +08:00
* elfcode.h (elf_map_symbols): Fix typo.
(write_object_contents): Check return values from prep_headers and elf_compute_section_file_positions. (set_section_contents): Likewise.
This commit is contained in:
@ -1,3 +1,10 @@
|
|||||||
|
Sat Feb 12 22:34:14 1994 Jeffrey A. Law (law@snake.cs.utah.edu)
|
||||||
|
|
||||||
|
* elfcode.h (elf_map_symbols): Fix typo.
|
||||||
|
(write_object_contents): Check return values from prep_headers and
|
||||||
|
elf_compute_section_file_positions.
|
||||||
|
(set_section_contents): Likewise.
|
||||||
|
|
||||||
Fri Feb 11 16:56:50 1994 David J. Mackenzie (djm@thepub.cygnus.com)
|
Fri Feb 11 16:56:50 1994 David J. Mackenzie (djm@thepub.cygnus.com)
|
||||||
|
|
||||||
* archive.c (normalize) [VMS]: Call malloc, not bfd_xmalloc.
|
* archive.c (normalize) [VMS]: Call malloc, not bfd_xmalloc.
|
||||||
|
@ -1434,7 +1434,7 @@ DEFUN (elf_map_symbols, (abfd), bfd * abfd)
|
|||||||
sect_syms = (asymbol **) bfd_zalloc (abfd, max_index * sizeof (asymbol *));
|
sect_syms = (asymbol **) bfd_zalloc (abfd, max_index * sizeof (asymbol *));
|
||||||
elf_section_syms (abfd) = sect_syms;
|
elf_section_syms (abfd) = sect_syms;
|
||||||
|
|
||||||
if (sect_syms != 0)
|
if (sect_syms == 0)
|
||||||
{
|
{
|
||||||
bfd_error = no_memory;
|
bfd_error = no_memory;
|
||||||
return false;
|
return false;
|
||||||
@ -2362,8 +2362,10 @@ DEFUN (NAME(bfd_elf,write_object_contents), (abfd), bfd * abfd)
|
|||||||
|
|
||||||
if (abfd->output_has_begun == false)
|
if (abfd->output_has_begun == false)
|
||||||
{
|
{
|
||||||
prep_headers (abfd);
|
if (prep_headers (abfd) == false)
|
||||||
elf_compute_section_file_positions (abfd);
|
return false;
|
||||||
|
if (elf_compute_section_file_positions (abfd) == false)
|
||||||
|
return false;
|
||||||
abfd->output_has_begun = true;
|
abfd->output_has_begun = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3192,8 +3194,10 @@ DEFUN (elf_set_section_contents, (abfd, section, location, offset, count),
|
|||||||
if (abfd->output_has_begun == false) /* set by bfd.c handler? */
|
if (abfd->output_has_begun == false) /* set by bfd.c handler? */
|
||||||
{
|
{
|
||||||
/* do setup calculations (FIXME) */
|
/* do setup calculations (FIXME) */
|
||||||
prep_headers (abfd);
|
if (prep_headers (abfd) == false)
|
||||||
elf_compute_section_file_positions (abfd);
|
return false;
|
||||||
|
if (elf_compute_section_file_positions (abfd) == false)
|
||||||
|
return false;
|
||||||
abfd->output_has_begun = true;
|
abfd->output_has_begun = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user