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

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



On 15-Mar-2001 Andreas Schwab wrote:
> "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.

__main in libgcc2.c only sets up the global ctors and dtors.

Exception handling seems to be initialized in crtstuff.c, but
this file is not used by m68k-atari-mint which uses AOUT 
(and not COFF or ELF).

Could someone on a real atari/mint compile and run the
the test program I attached ?

thanks,
Markus


//      Markus F.X.J. Oberhumer <markus@oberhumer.com>      */
//                 http://www.oberhumer.com                 */
//     5E CB 5C 85 DE AF 9E BF  E9 DA 7E 6A 39 F8 CC 67     */

                       3 WARPS TO URANUS