Changeset 3855 for branches


Ignore:
Timestamp:
Apr 1, 2014, 5:51:07 PM (11 years ago)
Author:
bird
Message:

gccXYZ.dll must call _CRT_term and do instance termination callbacks.

Location:
branches/libc-0.6/src/gcc/gcc/config/i386
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/libc-0.6/src/gcc/gcc/config/i386/emx-dllinit.c

    r543 r3855  
    44
    55extern int _CRT_init (void);
     6extern void _CRT_term (void);
    67extern void __ctordtorInit (void);
    78extern void __ctordtorTerm (void);
     
    1819    case 1:
    1920      __ctordtorTerm ();
     21      _CRT_term();
    2022      return 1;
    2123  }
  • branches/libc-0.6/src/gcc/gcc/config/i386/t-emx

    r2502 r3855  
    3434        -ex "___main ___do_global_* ___ctordtor* ___eh* _DLL_InitTerm" \
    3535        -d "GNU GCC Runtime Version $(gcc_version)" \
    36         -libf "INITINSTANCE TERMGLOBAL" -lc_alias -lc_dll  \
     36        -libf "INITINSTANCE TERMINSTANCE" -lc_alias -lc_dll  \
    3737        && ar rs $(SHLIB_BASENAME).a libgcc/__main.o libgcc/emx-ctordtor.o libgcc/emx-eh.o \
    3838    && emximp -o libgcc_so_d.a $(srcdir)/config/i386/emx-libgcc_so_d.def \
Note: See TracChangeset for help on using the changeset viewer.