* opncls.c (bfd_alloc_grow, bfd_alloc_finish): Remove.

* libbfd-in.h (bfd_alloc_grow, bfd_alloc_finish): Don't declare.
	* libbfd.h: Rebuild.
	* ieee.c (ieee_archive_p): Rewrite to not use bfd_alloc_grow.
	* sunos.c (sunos_add_dynamic_symbols): Likewise.
This commit is contained in:
Ian Lance Taylor
1997-03-17 17:51:20 +00:00
parent 437579d508
commit 062a1b96e0
4 changed files with 6 additions and 25 deletions

View File

@@ -565,27 +565,6 @@ bfd_alloc (abfd, size)
return ret;
}
void
bfd_alloc_grow (abfd, ptr, size)
bfd *abfd;
PTR ptr;
size_t size;
{
(void) obstack_grow(&(abfd->memory), ptr, size);
}
PTR
bfd_alloc_finish (abfd)
bfd *abfd;
{
PTR ret;
ret = obstack_finish (&(abfd->memory));
if (ret == NULL)
bfd_set_error (bfd_error_no_memory);
return ret;
}
PTR
bfd_zalloc (abfd, size)
bfd *abfd;