[GCC 4.8.1] Which section to emit, .eh_frame or .debug_section?

Jakub Jelinek jakub@redhat.com
Thu Feb 13 11:59:00 GMT 2014


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



More information about the Gcc mailing list