[Dwarf-Discuss] doubt parsing CIE in eh_frame

Francesco Zappa Nardelli francesco.zappa.nardelli@gmail.com
Mon May 23 21:10:34 GMT 2016

Dear DWARF-discuss

I am writing a parser of eh-frame informations and I have a doubt about a
behaviour of readelf.

On a (statically linked) binary readelf reports the following eh-frame CIE

00006f38 0000000000000014 00000000 CIE
 Version:               1
 Augmentation:          "zRS"
 Code alignment factor: 1
 Data alignment factor: -8
 Return address column: 16
 Augmentation data:     1b


and readelf interprets this bytecode as:

00006f38 0000000000000014 00000000 CIE "zRS" cf=1 df=-8 ra=16
  LOC           CFA
0000000000000000 rax+0

My doubt is: where does the rax+0 come from?  Is rax some kind of a default
for CFA computation?  The bytecode does not provide any real instruction
here and my parser/interpreter fails with ?undefined cfa?.

Thank in advance.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.dwarfstd.org/private.cgi/dwarf-discuss-dwarfstd.org/attachments/20160523/12d0132a/attachment.htm>

More information about the Dwarf-discuss mailing list