aboutsummaryrefslogtreecommitdiff
path: root/bfd/ChangeLog
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2021-05-04 14:29:04 +0100
committerNick Clifton <nickc@redhat.com>2021-05-04 14:29:04 +0100
commitbd6d8601f304d03ecdebe1b1a7d48666845a91aa (patch)
tree5880baf07238e954bd33f97c546dbabb3070dc7f /bfd/ChangeLog
parenta8d6316b67d52eaa1b7b311084ddff71a66f7cc0 (diff)
downloadbinutils-bd6d8601f304d03ecdebe1b1a7d48666845a91aa.zip
binutils-bd6d8601f304d03ecdebe1b1a7d48666845a91aa.tar.gz
binutils-bd6d8601f304d03ecdebe1b1a7d48666845a91aa.tar.bz2
Define bfd_realloc(ptr,0) to return allocated memory, whilst bfd_realloc_or_free(ptr,0) frees ptr.
* libbfd.c (bfd_malloc): Provide some documenation. Treat a size of 0 as 1. (bfd_realloc): Likewise. (bfd_zmalloc): Likewise. (bfd_realloc_or_free): Provide some documentation. Treat a size of 0 as a request to free. * libbfd-in.h (bfd_realloc): Remove prototype. (bfd_realloc_or_free): Remove prototype. (bfd_zmalloc): Remove prototype. * libbfd.h: Regenerate.
Diffstat (limited to 'bfd/ChangeLog')
-rw-r--r--bfd/ChangeLog13
1 files changed, 13 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 2659710..0eb8618 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,16 @@
+2021-05-04 Nick Clifton <nickc@redhat.com>
+
+ * libbfd.c (bfd_malloc): Provide some documenation. Treat a size
+ of 0 as 1.
+ (bfd_realloc): Likewise.
+ (bfd_zmalloc): Likewise.
+ (bfd_realloc_or_free): Provide some documentation. Treat a size
+ of 0 as a request to free.
+ * libbfd-in.h (bfd_realloc): Remove prototype.
+ (bfd_realloc_or_free): Remove prototype.
+ (bfd_zmalloc): Remove prototype.
+ * libbfd.h: Regenerate.
+
2021-05-03 Jan Beulich <jbeulich@suse.com>
* elf32-i386.c (elf_howto_table): Switch all 32-bit relocs to