Changeset 444


Ignore:
Timestamp:
Jul 25, 2003, 8:07:16 PM (22 years ago)
Author:
bird
Message:

LD is broken.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gcc/gcc/config/i386/emx-dllinit.c

    • Property cvs2svn:cvs-rev changed from 1.3 to 1.4
    r443 r444  
    1 /* This is the startup code for gcc.dll (and can be used as well for any other
    2    DLL which uses exceptions). It should call __ehInit() as any other dynamic
    3    library which uses exceptions, otherwise the C++ programs linked to it will
    4    fail to catch exceptions.
    5 
    6  -= This is duplicated in libgcc and this copy must be removed when  =-
    7  -= we've done a new release!                                        =-
    8 
    9     */
     1/* This is the startup code for gcc.dll it should not be exposed to anyone
     2   else as we don't wanna have duplicate startup code around. The right
     3   startup code is in libc.
     4   
     5   */
    106
    117extern int _CRT_init (void);
     
    139extern void __ctordtorTerm (void);
    1410extern void __ehInitDLL (void);
    15 #pragma weak __ehInitDLL
     11/* #pragma weak __ehInitDLL - ld crashing on #pragma weak __ehInitDLL. */
    1612extern void __ehTermDLL (void);
    17 #pragma weak __ehTermDLL
     13/* #pragma weak __ehTermDLL - ld crashing on #pragma weak __ehTermDLL. */
    1814
    1915unsigned long _System _DLL_InitTerm (unsigned long mod_handle, unsigned long flag)
     
    2420      if (_CRT_init () != 0)
    2521        break;
    26       if (__ehInitDLL)
     22      /*if (__ehInitDLL)*/
    2723        __ehInitDLL ();
    2824      __ctordtorInit ();
     
    3026    case 1:
    3127      __ctordtorTerm ();
    32       if (__ehTermDLL)
     28      /*if (__ehTermDLL)*/
    3329        __ehTermDLL ();
    3430      return 1;
Note: See TracChangeset for help on using the changeset viewer.