PR29677, Field `the_bfd` of `asymbol` is uninitialised
authorAlan Modra <amodra@gmail.com>
Fri, 14 Oct 2022 00:00:21 +0000 (10:30 +1030)
committerAlan Modra <amodra@gmail.com>
Fri, 14 Oct 2022 11:37:18 +0000 (22:07 +1030)
commitd12f8998d2d086f0a6606589e5aedb7147e6f2f1
tree71f13b323825c3cbd1706c25d866f4bc4e8431fa
parentb3a5b1fd71079ffb01b4969b34e11fd6c5d416f6
PR29677, Field `the_bfd` of `asymbol` is uninitialised

Besides not initialising the_bfd of synthetic symbols, counting
symbols when sizing didn't match symbols created if there were any
dynsyms named "".  We don't want synthetic symbols without names
anyway, so get rid of them.  Also, simplify and correct sanity checks.

PR 29677
* mach-o.c (bfd_mach_o_get_synthetic_symtab): Rewrite.
bfd/mach-o.c