Fix seg-fault running addr2line on a corrupt binary.
authorNick Clifton <nickc@redhat.com>
Thu, 1 Dec 2016 10:15:07 +0000 (10:15 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 1 Dec 2016 10:15:07 +0000 (10:15 +0000)
commit50455f1ab2935f7321215dfa681745c9b1cb5b19
treea176d4e4826fe79be8c17e90c713b092b0e7ac01
parent95a23284a3db0ec85bb0b11c70e6b5acf00563f6
Fix seg-fault running addr2line on a corrupt binary.

PR binutils/20891
* aoutx.h (find_nearest_line): Handle the case where the main file
name and the directory name are both empty.
bfd/ChangeLog
bfd/aoutx.h