diff options
author | Ian Lance Taylor <ian@airs.com> | 1997-03-25 19:46:12 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1997-03-25 19:46:12 +0000 |
commit | 3cd5cf3d40d837d6b42c31f488a36b56e01b2a2a (patch) | |
tree | 1754d6bc9f24a884af24d905ad38f0433b0f626c /bfd/libbfd-in.h | |
parent | 3b111d29fb0640e34c4db9ec3999717b04674c89 (diff) | |
download | gdb-3cd5cf3d40d837d6b42c31f488a36b56e01b2a2a.zip gdb-3cd5cf3d40d837d6b42c31f488a36b56e01b2a2a.tar.gz gdb-3cd5cf3d40d837d6b42c31f488a36b56e01b2a2a.tar.bz2 |
* stabs.c (_bfd_link_section_stabs): Copy over the first header
symbol. Check for memory allocation failure of *psinfo.
(_bfd_write_section_stabs): Add psinfo parameter. Change all
callers. Set the value of the header symbol.
* libbfd-in.h (_bfd_write_section_stabs): Update declaration.
* libbfd.h: Rebuild.
Diffstat (limited to 'bfd/libbfd-in.h')
-rw-r--r-- | bfd/libbfd-in.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/bfd/libbfd-in.h b/bfd/libbfd-in.h index 8719fec..e1fd858 100644 --- a/bfd/libbfd-in.h +++ b/bfd/libbfd-in.h @@ -87,12 +87,11 @@ extern PTR bfd_zmalloc PARAMS ((size_t)); extern bfd_error_handler_type _bfd_error_handler; -/* These routines allocate and free things on the BFD's obstack. */ +/* These routines allocate and free things on the BFD's objalloc. */ -PTR bfd_alloc PARAMS ((bfd *abfd, size_t size)); -PTR bfd_zalloc PARAMS ((bfd *abfd, size_t size)); - -#define bfd_release(x,y) (void) obstack_free(&(x->memory),y) +extern PTR bfd_alloc PARAMS ((bfd *, size_t)); +extern PTR bfd_zalloc PARAMS ((bfd *, size_t)); +extern void bfd_release PARAMS ((bfd *, PTR)); bfd * _bfd_create_empty_archive_element_shell PARAMS ((bfd *obfd)); bfd * _bfd_look_for_bfd_in_cache PARAMS ((bfd *arch_bfd, file_ptr index)); @@ -430,7 +429,7 @@ extern boolean _bfd_link_section_stabs /* Write out the .stab section when linking stabs in sections. */ extern boolean _bfd_write_section_stabs - PARAMS ((bfd *, asection *, PTR *, bfd_byte *)); + PARAMS ((bfd *, PTR *, asection *, PTR *, bfd_byte *)); /* Write out the .stabstr string table when linking stabs in sections. */ |