public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Minimal FDE
@ 2004-08-30 20:03 Yaakov Yaari
  2004-08-30 20:57 ` Richard Henderson
  0 siblings, 1 reply; 7+ messages in thread
From: Yaakov Yaari @ 2004-08-30 20:03 UTC (permalink / raw)
  To: gcc

Hello,
Assuming executables are manipulated by splitting and resizing of
functions.
Here is a simplified case:
------------ before ---------
func1
-------
func2
------------ after -----------
func1_1
br func1_2
----------
func2
----------
func1_2
----------

Exception handling poses a problem. If func1 is referred in the .eh_frame,
we need to resize its FDE range to the size of func1_1, and create is new
FDE for func1_2.

Considering FDE formation, it consists of a header (size, CIE pointer, and
function address and size), followed by a sequence of (DWARF) instructions.

How critical are these instructions to the unwinding process?
Is  there some minimal/simplified set of instructions that will allow
exceptions to be properly caught?

Regards,
Yaakov


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-09-01  8:27 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-30 20:03 Minimal FDE Yaakov Yaari
2004-08-30 20:57 ` Richard Henderson
2004-09-01  4:22   ` Alan Modra
2004-09-01  6:51     ` Yaakov Yaari
2004-09-01  7:26       ` Alan Modra
2004-09-01  7:59         ` Yaakov Yaari
2004-09-01  8:27           ` Alan Modra

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).