mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-30 09:09:16 +08:00
* opncls.c (bfd_realloc): Deleted, since it's broken and fixing it would make
it slow. Besides, it isn't used much. * elfcode.h (elf_map_symbols): Always allocate new storage for the symbol table.
This commit is contained in:
@ -1554,11 +1554,15 @@ elf_map_symbols (abfd)
|
||||
|
||||
if (num_sections)
|
||||
{
|
||||
#if 0 /* @@ I just deleted bfd_realloc, because it's broken and too hard to
|
||||
fix. I'm leaving this code here as a reminder to look at this more
|
||||
carefully later and see if we can avoid wasting memory. */
|
||||
if (syms)
|
||||
syms = (asymbol **) bfd_realloc (abfd, syms,
|
||||
((symcount + num_sections + 1)
|
||||
* sizeof (asymbol *)));
|
||||
else
|
||||
#endif
|
||||
syms = (asymbol **) bfd_alloc (abfd,
|
||||
(num_sections + 1) * sizeof (asymbol *));
|
||||
if (!syms)
|
||||
|
Reference in New Issue
Block a user