Fix a seg-fault when displaying notes from a prorgam segment. Check for a NULL strin...
authorNick Clifton <nickc@redhat.com>
Mon, 27 Nov 2017 11:05:39 +0000 (11:05 +0000)
committerNick Clifton <nickc@redhat.com>
Mon, 27 Nov 2017 11:05:39 +0000 (11:05 +0000)
commit4dff97b2ce94bbb9c0c16e0e4129060b9a894f13
tree55eeffd408e148d7cebbee4f7074db7b831b8df3
parente3d40582166056dd1dfeef2a06ba8f5897b673ee
Fix a seg-fault when displaying notes from a prorgam segment.  Check for a NULL string section before attempting compute the name of a separate debug info file.

PR 22490
* readelf.c (dump_section_as_bytes): Check for a NULL string
section pointer.
(process_notes_at): Compute the alignment to use if displaying
notes from a segment.
binutils/ChangeLog
binutils/readelf.c