rx: memory allocation without checking for NULL return
authorAlan Modra <amodra@gmail.com>
Wed, 26 Feb 2020 02:32:42 +0000 (13:02 +1030)
committerAlan Modra <amodra@gmail.com>
Wed, 26 Feb 2020 02:34:54 +0000 (13:04 +1030)
commite0b317de31ab0e99ef8d14e9f751ae7e7d16abde
treeac70fa408b84ae4b2b88ef59b08cd7ef0e9b74c1
parentda3ec71fd49cb138d597870262a00a82578e96d0
rx: memory allocation without checking for NULL return

* elf32-rx.c (rx_elf_relocate_section): Use bfd_malloc rather than
malloc.  Check for NULL return from bfd_malloc.
(rx_table_find, rx_table_map): Likewise.
(rx_set_section_contents): Check bfd_alloc return.
(rx_dump_symtab): Don't alloc internal_syms or external_syms.
bfd/ChangeLog
bfd/elf32-rx.c