diff options
author | Alan Modra <amodra@gmail.com> | 2021-02-14 16:40:01 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2021-02-14 22:54:12 +1030 |
commit | 1944212b426d2e13cc4bb24aa1a850bbc572e624 (patch) | |
tree | 2eeb87749918f031c33dc4a8a64c2a3f5e077e6e /config | |
parent | 0d0a0d86c841a95226d9cc7c247c770c38fdc81b (diff) | |
download | gdb-1944212b426d2e13cc4bb24aa1a850bbc572e624.zip gdb-1944212b426d2e13cc4bb24aa1a850bbc572e624.tar.gz gdb-1944212b426d2e13cc4bb24aa1a850bbc572e624.tar.bz2 |
objdump: don't add an extra entry to syms array
Space for a NULL is there in every backend bfd_get_symtab_upper_bound
or bfd_get_dynamic_symtab_upper_bound when the symbol count is non-zero,
and placed as a terminator by bfd_canonicalize_symtab. Many backends
even return a single NULL entry array for zero symbol count, and while
there are a few that return a NULL array for no symbols, that case is
handled fine in objdump. So don't have objdump add yet another NULL
entry.
* objdump.c (slurp_symtab): Don't add an extra entry for NULL
to the symbol array.
(slurp_dynamic_symtab): Likewise.
(dump_bfd): Formatting. Copy terminating NULL from extra_syms.
Diffstat (limited to 'config')
0 files changed, 0 insertions, 0 deletions