diff options
author | Ken Raeburn <raeburn@cygnus> | 1994-10-12 21:39:54 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@cygnus> | 1994-10-12 21:39:54 +0000 |
commit | ef4b8f668789ce457d76ff29576eeb72e263f396 (patch) | |
tree | 4547c23b0de286592e1644d33e57965ca3252992 /bfd/elfcode.h | |
parent | a82ae15d4b278243545bdc8290f044e69ea7c31c (diff) | |
download | gdb-ef4b8f668789ce457d76ff29576eeb72e263f396.zip gdb-ef4b8f668789ce457d76ff29576eeb72e263f396.tar.gz gdb-ef4b8f668789ce457d76ff29576eeb72e263f396.tar.bz2 |
* 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.
Diffstat (limited to 'bfd/elfcode.h')
-rw-r--r-- | bfd/elfcode.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bfd/elfcode.h b/bfd/elfcode.h index 8662c7f..888e512 100644 --- a/bfd/elfcode.h +++ b/bfd/elfcode.h @@ -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) |