Changeset 2807
- Timestamp:
- Sep 2, 2006, 8:08:34 AM (19 years ago)
- Location:
- trunk/libc
- Files:
-
- 3 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libc/Makefile.kmk
r2806 r2807 266 266 startupobjs_TEMPLATE = usr.lib 267 267 startupobjs_SOURCES := 268 ifeq ($(BUILD_TARGET),os2) 268 269 define def_startup 269 270 $(PATH_TARGET)/crt0$(i).o: src/libc/startup/os2/x86/crt0.s | $(call DIRDEP,$(PATH_TARGET)) … … 345 346 resp \ 346 347 ,$(eval $(def_startup))) 348 endif # os2 349 350 ifeq ($(BUILD_TARGET),nt) 351 startupobjs_SOURCES += $(PATH_TARGET)/crt0.o 352 $(PATH_TARGET)/crt0.o: src/libc/startup/nt/x86/crt0.s 353 $(RM) -f $@ 354 gcc -c -Iinclude -x assembler-with-cpp \ 355 -o $@ \ 356 $< 357 endif 347 358 348 359 # binmode -
trunk/libc/include/emx/startup.h
r2295 r2807 20 20 * @{ 21 21 */ 22 #ifdef __OS2__ 22 23 /** Array of CRT init functions. */ 23 24 extern int __crtinit1__; … … 32 33 /** Array of destructors. */ 33 34 extern int __DTOR_LIST__; 35 36 #elif defined(__NT__) 37 /** Array of CRT init functions. */ 38 extern int __crtinit1__; 39 /** Array of CRT exit functions. */ 40 extern int __crtexit1__; 41 #endif 34 42 /** @} */ 35 43 … … 43 51 #define _ARG_NONZERO 0x80 /* Always set, to avoid end of string */ 44 52 45 /* Arrange that FUN will be called by _CRT_init(). */ 53 /** @def _CRT_INIT1 54 * Arrange that FUN will be called by _CRT_init(). */ 55 /** @def _CRT_TERM1 56 * Arrange that FUN will be called by _CRT_term(). */ 57 #ifdef __OS2__ 58 # define _CRT_INIT1(fun) __asm__ (".stabs \"___crtinit1__\", 23, 0, 0, _" #fun); 59 # define _CRT_EXIT1(fun) __asm__ (".stabs \"___crtexit1__\", 23, 0, 0, _" #fun); 60 #elif defined(__NT__) 61 # define _CRT_INIT1(fun) void *__crtinit1__##fun##__ __attribute__((__section__("crtinit1"))) = (void *)fun; 62 # define _CRT_EXIT1(fun) void *__crtexit1__##fun##__ __attribute__((__section__("crtexit1"))) = (void *)fun; 63 #else 64 # error "port me" 65 #endif 46 66 47 #define _CRT_INIT1(fun) __asm__ (".stabs \"___crtinit1__\", 23, 0, 0, _" #fun);48 67 49 /* Arrange that FUN will be called by _CRT_term(). */50 51 #define _CRT_EXIT1(fun) __asm__ (".stabs \"___crtexit1__\", 23, 0, 0, _" #fun);52 68 53 69 extern char ** _org_environ;
Note:
See TracChangeset
for help on using the changeset viewer.