This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: [GCC 4.8.1] Which section to emit, .eh_frame or .debug_section?
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Ramana <ramana dot venkat83 at gmail dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Thu, 13 Feb 2014 12:59:15 +0100
- Subject: Re: [GCC 4.8.1] Which section to emit, .eh_frame or .debug_section?
- Authentication-results: sourceware.org; auth=none
- References: <CAF4ZLktqbpqse0jVuw38NTRQAe0gd7RbXA_LBw0PBUqqhNWx4w at mail dot gmail dot com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
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