| commit | 160f20077865425a5874ed327540ab0bf33fb0d1 | [log] [tgz] |
|---|---|---|
| author | Alan Modra <amodra@gmail.com> | Wed Mar 08 09:19:38 2023 +1030 |
| committer | Alan Modra <amodra@gmail.com> | Wed Mar 08 11:24:55 2023 +1030 |
| tree | 93ed7fe4f476be5978cf0b82058c642b804f1283 | |
| parent | d64c8f7181fd21f90983f8d55369f6f9a2960c43 [diff] |
Re: Move nm.c cached line number info to bfd usrdata Commit e3f450f3933d resulted in a nm -l segfault on object files without undefined symbols. Fix that, and be paranoid about bfd section count changing. * nm.c (struct lineno_cache): Add seccount. (free_lineno_cache): Don't segfault on NULL lc->relocs. (print_symbol): Stash section count when creating arrays.