Skip to content
Snippets Groups Projects
Commit 160f2007 authored by Alan Modra's avatar Alan Modra
Browse files

Re: Move nm.c cached line number info to bfd usrdata

Commit e3f450f3 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.
parent d64c8f71
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment