unwind info for .init/.fini sections
Ulrich Drepper
drepper@redhat.com
Mon Feb 25 21:01:00 GMT 2002
David Mosberger <davidm@hpl.hp.com>
> (1) Change the linker so it updates the unwind info once the final
> .init/.fini section has been created. This shouldn't be all
> that hard: it requires updating the unwind table entry and
> adjusting the unwind descriptors so that the final body region
> is long enough to cover the entire section.
>
> (2) Require that each code fragment that goes into the .init/.fini
> section is wrapped like this:
>
> .proc whatever
> .prologue
> .vframe r32
> .save rp, r33
> .save ar.pfs, r34
> .body
> :
> ACTUAL INIT CODE
> :
> .endp
I definitely prefer (1). Putting this kind of strange requirements on
the code is definitely causing problems. Let things be automated as
much as possible.
--
---------------. ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------
More information about the Libc-hacker
mailing list