This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: DWARF2 unwinding documentation/help


On Wed, Sep 03, 2003 at 12:54:07PM +0200, Bernardo Innocenti wrote:
> Binaries are pre/post-processed at the final link stage. The linker
> is replaced by a shell script invoking the real linker with additional
> flags and an "elf2flt" program to convert the result to a flat binary.

Ah hah.  In which case I would *keep* all of the compiler-level
features that know about named sections, and simply at the end
use a custom link script to make sure the data winds up in a place
that your elf2flt needs.

One advantage here is that the .eh_frame section remains separate,
and thus readelf can dump it for you.

> Ok. One less thing to worry about. Does the dwarf2 output depend
> on frame size and layout? Does the unwinder need to know where
> registers are being saved on the stack?

Of course.


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]