[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] MiNT: gcc 2.95.2 exceptions and __EH_FRAME_BEGIN__



"Markus F.X.J. Oberhumer" <markus@oberhumer.com> writes:

|> After digging into the sources it looks that mintlib is not
|> initializing the exception frame, and therefore the
|> libgcc.a runtime function __frame_state_for() fails.
|> 
|> Other platforms use something like
|> 
|>   __register_frame_info(__EH_FRAME_BEGIN__, &outer_frame_object);
|> 
|> in their lib crt startup code.

This is supposed to be done transparently by gcc providing a initializer
function.  See libgcc2.c in the gcc sources, and lookup HAS_INIT_SECTION
in the docs.

Andreas.

-- 
Andreas Schwab                                  "And now for something
SuSE Labs                                        completely different."
Andreas.Schwab@suse.de
SuSE GmbH, Schanzäckerstr. 10, D-90443 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5