- Timestamp:
- Jun 7, 2019, 10:13:19 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
asp3_tinet_ecnl_rx/trunk/musl-1.1.18/src/env/__libc_start_main.c
r364 r400 9 9 void __init_tls(size_t *); 10 10 11 #ifndef __c2__12 11 static void dummy(void) {} 13 12 weak_alias(dummy, _init); 14 #else15 __attribute((weak))16 void _init(void) {}17 #endif18 13 19 #ifndef __c2__20 14 __attribute__((__weak__, __visibility__("hidden"))) 21 15 extern void (*const __init_array_start)(void), (*const __init_array_end)(void); 22 #else23 extern void(*const __init_array_start)(void);24 #define __init_array_end __init_array_start25 #endif26 16 27 #ifndef __c2__28 17 static void dummy1(void *p) {} 29 18 weak_alias(dummy1, __init_ssp); 30 #else31 __attribute((weak))32 void __init_ssp(void *p) {}33 #endif34 19 35 20 #define AUX_CNT 38 … … 77 62 } 78 63 79 #ifndef __c2__80 64 weak_alias(libc_start_init, __libc_start_init); 81 #else82 void __libc_start_init(void)83 {84 libc_start_init();85 }86 #undef exit87 #define exit(x) x88 #endif89 65 90 66 int __libc_start_main(int (*main)(int,char **,char **), int argc, char **argv)
Note:
See TracChangeset
for help on using the changeset viewer.