[GCC 4.8.1] Which section to emit, .eh_frame or .debug_section?
Ramana
ramana.venkat83@gmail.com
Thu Feb 13 13:58:00 GMT 2014
On Thu, Feb 13, 2014 at 5:29 PM, Jakub Jelinek <jakub@redhat.com> wrote:
> On Thu, Feb 13, 2014 at 05:24:53PM +0530, Ramana wrote:
>> For C++ applications, on PPC, gcc v4.8.1 is generating the call frame
>> information in the .eh_frame section by default.
>>
>> Could you please tell me why .eh_frame is being generated instead of
>> .debug_frame?
>
> Because .eh_frame is the same data .debug_frame contains, just more compact
> and usable also for unwinding and backtrace purposes, not just debugging.
> It doesn't make sense to emit both.
>
> Jakub
Ok.
But there is no mention of .eh_frame in dwarf4 standard. Any dwarf4
compliant debugger would look for only .debug_frame or shouldn't it?
Regards,
Venkata Ramanaiah N
More information about the Gcc
mailing list