mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-25 13:27:26 +08:00
* elfcode.h (elf_link_input_bfd): Don't try to read local symbols
if there aren't any in the input file.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
Thu Jun 16 23:36:23 1994 Jeff Law (law@snake.cs.utah.edu)
|
||||||
|
|
||||||
|
* elfcode.h (elf_link_input_bfd): Don't try to read local symbols
|
||||||
|
if there aren't any in the input file.
|
||||||
|
|
||||||
Thu Jun 16 14:25:22 1994 Eric Youngdale (ericy@cais.cais.com)
|
Thu Jun 16 14:25:22 1994 Eric Youngdale (ericy@cais.cais.com)
|
||||||
|
|
||||||
* i386linux.c: Many new functions and definitions for linker
|
* i386linux.c: Many new functions and definitions for linker
|
||||||
|
@ -5850,10 +5850,11 @@ elf_link_input_bfd (finfo, input_bfd)
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* Read the local symbols. */
|
/* Read the local symbols. */
|
||||||
if (bfd_seek (input_bfd, symtab_hdr->sh_offset, SEEK_SET) != 0
|
if (locsymcount > 0
|
||||||
|| (bfd_read (finfo->external_syms, sizeof (Elf_External_Sym),
|
&& (bfd_seek (input_bfd, symtab_hdr->sh_offset, SEEK_SET) != 0
|
||||||
locsymcount, input_bfd)
|
|| (bfd_read (finfo->external_syms, sizeof (Elf_External_Sym),
|
||||||
!= locsymcount * sizeof (Elf_External_Sym)))
|
locsymcount, input_bfd)
|
||||||
|
!= locsymcount * sizeof (Elf_External_Sym))))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
/* Swap in the local symbols and write out the ones which we know
|
/* Swap in the local symbols and write out the ones which we know
|
||||||
|
Reference in New Issue
Block a user