Re: [Dwarf-Discuss] doubt parsing CIE in eh_frame

2016-06-01 Thread Nick Clifton
Hi David, > The bug in readelf (I think) is at the end of display_debug_frames() in > dwarf.c (binutils directory). > > The frame_display_row call is a bit odd if all that exist are nops and > results in the rax output I am currently testing out the attached patch. I am not sure however if it i

Re: [Dwarf-Discuss] doubt parsing CIE in eh_frame

2016-05-24 Thread David Anderson
On 05/24/2016 01:07 AM, Jakub Jelinek wrote: > On Tue, May 24, 2016 at 09:46:58AM +0200, Francesco Zappa Nardelli wrote: >> Dear David and all >> >> If you could produce a small object file.. >> >> >> Invoking readelf on /lib/x86_64-linux-gnu/libc.so.6 is enough to observe >> this (I am on Ubuntu 1

Re: [Dwarf-Discuss] doubt parsing CIE in eh_frame

2016-05-24 Thread David Anderson
On 05/24/2016 12:46 AM, Francesco Zappa Nardelli wrote: >> If you could produce a small object file.. > > Invoking readelf on /lib/x86_64-linux-gnu/libc.so.6 is enough to > observe this (I am on Ubuntu 14.04.3 LTS (GNU/Linux 3.13.0-68-generic > x86_64)): > > $ readelf -wf /lib/x86_64-linux-gnu/libc

Re: [Dwarf-Discuss] doubt parsing CIE in eh_frame

2016-05-24 Thread Francesco Zappa Nardelli
Dear Jakub The only zRS I see in my libc.so.6 is the __restore_rt trampoline in sigaction.c. https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/unix/sysv/linux/x86_64/sigaction.c;h=71ac05c4bc01c560935f3bbd4306e3aeacb6d9be;hb=HEAD The CIE doesn't contain any (non-nop) instructions, so guess

Re: [Dwarf-Discuss] doubt parsing CIE in eh_frame

2016-05-24 Thread Jakub Jelinek
On Tue, May 24, 2016 at 09:46:58AM +0200, Francesco Zappa Nardelli wrote: > Dear David and all > > If you could produce a small object file.. > > > Invoking readelf on /lib/x86_64-linux-gnu/libc.so.6 is enough to observe > this (I am on Ubuntu 14.04.3 LTS (GNU/Linux 3.13.0-68-generic x86_64)): >

Re: [Dwarf-Discuss] doubt parsing CIE in eh_frame

2016-05-24 Thread Francesco Zappa Nardelli
Dear David and all If you could produce a small object file.. Invoking readelf on /lib/x86_64-linux-gnu/libc.so.6 is enough to observe this (I am on Ubuntu 14.04.3 LTS (GNU/Linux 3.13.0-68-generic x86_64)): $ readelf -wf /lib/x86_64-linux-gnu/libc.so.6 (and search for S in the augmentation stri

Re: [Dwarf-Discuss] doubt parsing CIE in eh_frame

2016-05-23 Thread David Anderson
On 05/23/2016 02:10 PM, Francesco Zappa Nardelli wrote: > 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 entry: > > 6f38 0014 00