nm -l crashes because of a NULL pointer deref in dwarf2.c. functionname_ptr can
be NULL and there are tests in the logic of the function find_line to deal with
that case. Yet, in line 2383 of current top, functionname_ptr is dereference
without check for NULL.
The fix is to check for NULL before using functionname_ptr. I tried a one-line
fix and it seems to work.
Created attachment 1918 [details]
Proposed fix for SEGV problem in dwarf2.c
Tested this patch in i686-linux-gnu. Looked okay.
I have applied your patch.
patch checked in