DWARF2 unwinding documentation/help

Richard Henderson rth@redhat.com
Wed Sep 3 17:09:00 GMT 2003


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~



More information about the Gcc mailing list