]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
* libbfd-in.h: Remove alloca cruft. It was missing some necessary
authorJim Kingdon <jkingdon@engr.sgi.com>
Thu, 10 Mar 1994 02:09:10 +0000 (02:09 +0000)
committerJim Kingdon <jkingdon@engr.sgi.com>
Thu, 10 Mar 1994 02:09:10 +0000 (02:09 +0000)
commit80425e6c822142cc43999dece179009412b7f190
tree5788e6f2593fec5f9c00be928c1b724578ce096e
parentcdc7029d493894306823754fead9f586ab8b0eb6
* libbfd-in.h: Remove alloca cruft.  It was missing some necessary
cruft (like the #pragma alloca for AIX).
In addition to that problem, the C alloca calls xmalloc, which
means checking for being out of memory can't work right.  The
following changes remove all uses of alloca from BFD.
* hosts/solaris2.h: Remove alloca cruft.
* som.c: Replace alloca with a fixed size auto array.
* aoutx.h, elfcode.h, nlmcode.h, bout.c, coff-alpha.c, ecoff.c,
ecofflink.c, elf32-hppa.c, elf32-mips.c, linker.c, reloc.c, som.c:
Replace alloca with malloc and appropriate error checking and
freeing.
* linker.c: Replace alloca with obstack_alloc.
* libbfd.h: Rebuilt.
12 files changed:
bfd/ChangeLog
bfd/aoutx.h
bfd/bout.c
bfd/ecoff.c
bfd/elf32-hppa.c
bfd/elfcode.h
bfd/hosts/solaris2.h
bfd/libbfd-in.h
bfd/libbfd.h
bfd/nlmcode.h
bfd/reloc.c
bfd/som.c