mach-o: out of memory in get_dynamic_reloc_upper_bound
authorAlan Modra <amodra@gmail.com>
Fri, 17 Mar 2023 10:37:17 +0000 (21:07 +1030)
committerAlan Modra <amodra@gmail.com>
Fri, 17 Mar 2023 10:44:46 +0000 (21:14 +1030)
commit92376883a9a18e478228ae14ac8f3b03398fdefa
tree25bdacee745eda994a4a9f2c52f46383a9bcec2b
parent1d7e244fc54e1d825e851d8af13a24136ae8cd79
mach-o: out of memory in get_dynamic_reloc_upper_bound

* mach-o.c (bfd_mach_o_canonicalize_dynamic_reloc): Move sanity
checks..
(bfd_mach_o_get_dynamic_reloc_upper_bound): ..to here.
bfd/mach-o.c