remove more xmalloc in bfd
authorAlan Modra <amodra@gmail.com>
Tue, 15 Oct 2019 05:27:35 +0000 (15:57 +1030)
committerAlan Modra <amodra@gmail.com>
Tue, 15 Oct 2019 06:20:32 +0000 (16:50 +1030)
commit9a73315161bc07d958060847ae01996312e1b30f
treeafafb3efbfd72cbc23cef4aa72d2b39e19edaace
parent779f2ae733cc4b4da666a2405eb77ec70df2c772
remove more xmalloc in bfd

Also fixes m68hc1x printf arguments which would have bombed when
compiling on a 32-bit host with --enable-64-bit-bfd.

bfd/
PR 24955
* elf32-arm.c (set_cmse_veneer_addr_from_implib): Use bfd_malloc
rather than xmalloc.
* elf32-m68hc1x.c (reloc_warning): New function.
(elf32_m68hc11_relocate_section): Use it here.  Cast bfd_vma values
corresponding to %lx in format strings.
* elf32-nds32.c (nds32_insertion_sort): Use a stack temporary.
gas/
* config/tc-nds32.c (nds32_set_section_relocs): Use relocs and n
parameters rather than equivalent sec->orelocation and
sec->reloc_count.  Don't sort for n <= 1.  Tidy.
bfd/ChangeLog
bfd/elf32-arm.c
bfd/elf32-m68hc1x.c
bfd/elf32-nds32.c
gas/ChangeLog
gas/config/tc-nds32.c
This page took 0.024631 seconds and 4 git commands to generate.