Readelf: Handle forward references to CIEs
authorAlan Modra <amodra@gmail.com>
Mon, 22 Sep 2014 08:23:15 +0000 (17:53 +0930)
committerAlan Modra <amodra@gmail.com>
Mon, 22 Sep 2014 09:27:16 +0000 (18:57 +0930)
commit49727e46175419c638251b39091f24c575568bee
tree772cb54ac720f72790ab013236f2b5c3cdc63c79
parentaa8f4d1e5e6c01420489a2dfba72495bbd8489be
Readelf: Handle forward references to CIEs

The linker side of pr16563 was fixed with commit 18cd5bce, but
unfortunately people continue to use older linkers with -flto.  This
means we have binaries with working .eh_frame that can't be dumped by
readelf, and I'm seeing internal IBM bug reports about this fact.

PR 16563
* dwarf.c (GET): Remove semicolon.
(read_cie): New function, extracted from..
(display_debug_frames): ..here.  Correctly handle signed offset
from FDE to CIE in .eh_frame.  Decode forward referenced CIEs too.
binutils/ChangeLog
binutils/dwarf.c