aboutsummaryrefslogtreecommitdiff
path: root/gdb/python
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2025-02-13 10:59:51 +1030
committerAlan Modra <amodra@gmail.com>2025-02-14 08:26:42 +1030
commit7763858d27b8a9b1ddc840beb4b352e173149ba1 (patch)
treef6df046a09fd95ebb925c7d1ce22361c8c2438ca /gdb/python
parentd1c34b3c05760afac3fbf6b1dd7c7b7a0732275c (diff)
downloadbinutils-7763858d27b8a9b1ddc840beb4b352e173149ba1.zip
binutils-7763858d27b8a9b1ddc840beb4b352e173149ba1.tar.gz
binutils-7763858d27b8a9b1ddc840beb4b352e173149ba1.tar.bz2
gas: replace bfd_alloc with notes_alloc
bfd_alloc can return NULL on out-of-memory so code needs to check the return value and print an error. That check was missing in write.c. notes_alloc won't return NULL, instead the underlying obstack_alloc prints an OOM message and the process exits. This is more convenient, and when the bfd_alloc memory is attached to the gas output bfd it is released only slightly before the notes obstack. * config/obj-macho.c (obj_mach_o_set_indirect_symbols): Use notes_calloc rather than bfd_zalloc. * write.c (set_symtab): Use notes_alloc.
Diffstat (limited to 'gdb/python')
0 files changed, 0 insertions, 0 deletions