diff options
author | Alan Modra <amodra@gmail.com> | 2023-05-03 13:00:11 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2023-05-03 14:56:01 +0930 |
commit | a41bd1c837f9b71b44dbb71c2d47814326cfaa8d (patch) | |
tree | 004dda95dfc323a4cc65050f0652a8c0f6274b28 /bfd/bfd-in2.h | |
parent | 37cfe371c4f2bb7aba2a684ed91749d1288ca187 (diff) | |
download | gdb-a41bd1c837f9b71b44dbb71c2d47814326cfaa8d.zip gdb-a41bd1c837f9b71b44dbb71c2d47814326cfaa8d.tar.gz gdb-a41bd1c837f9b71b44dbb71c2d47814326cfaa8d.tar.bz2 |
Move bfd_alloc, bfd_zalloc and bfd_release to libbfd.c
These functions don't belong in opncls.c.
* libbfd-in.h (bfd_release): Delete prototype.
* opncls.c (bfd_alloc, bfd_zalloc, bfd_release): Move to..
* libbfd.c: ..here. Include objalloc.c and provide bfd_release
with a FUNCTION comment.
* bfd-in2.h: Regenerate.
* libbfd.h: Regenerate.
Diffstat (limited to 'bfd/bfd-in2.h')
-rw-r--r-- | bfd/bfd-in2.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h index 470a3cc..0c1844d 100644 --- a/bfd/bfd-in2.h +++ b/bfd/bfd-in2.h @@ -495,10 +495,6 @@ bool bfd_make_writable (bfd *abfd); bool bfd_make_readable (bfd *abfd); -void *bfd_alloc (bfd *abfd, bfd_size_type wanted); - -void *bfd_zalloc (bfd *abfd, bfd_size_type wanted); - uint32_t bfd_calc_gnu_debuglink_crc32 (uint32_t crc, const bfd_byte *buf, bfd_size_type len); @@ -523,6 +519,12 @@ char *bfd_follow_build_id_debuglink (bfd *abfd, const char *dir); const char *bfd_set_filename (bfd *abfd, const char *filename); /* Extracted from libbfd.c. */ +void *bfd_alloc (bfd *abfd, bfd_size_type wanted); + +void *bfd_zalloc (bfd *abfd, bfd_size_type wanted); + +void bfd_release (bfd *, void *); + /* Byte swapping macros for user section data. */ |