Under Windows my program exe file is about 6Mb. Under Linux and Wine it is about 50Mb (.so file). It is normal ? And Wine makes Segmentation fault on initialising global variables of my program.
#1 0x40bb0116 in __static_initialization_and_destruction_0 (__initialize_p=1, __priority=65535) at main.cpp:681 #2 0x40bb0176 in _GLOBAL__I_oldfCentury () at main.cpp:3809 #3 0x40bcc151 in __do_global_ctors_aux () from /home/mc/PRJ/main.exe.so #4 0x40872dc6 in _init () from /home/mc/PRJ/main.exe.so #5 0x4000c4b1 in _dl_init_internal () from /lib/ld-linux.so.2 #6 0x40154f42 in dl_open_worker () from /lib/libc.so.6 #7 0x4000c266 in _dl_catch_error_internal () from /lib/ld-linux.so.2 #8 0x401549af in _dl_open () from /lib/libc.so.6 #9 0x4017bf6b in dlopen_doit () from /lib/libdl.so.2 #10 0x4000c266 in _dl_catch_error_internal () from /lib/ld-linux.so.2 #11 0x4017c316 in _dlerror_run () from /lib/libdl.so.2 #12 0x4017bf14 in dlopen@@GLIBC_2.1 () from /lib/libdl.so.2 #13 0x4002ea32 in wine_dlopen (filename=0xbfffc5f8 "/home/mc/PRJ/main.exe.so", flag=2, error=0xbfffd628 "\200.", errorsize=1024) at loader.c:454 #14 0x4049e920 in __wine_kernel_init () at process.c:841 #15 0x401d8947 in __wine_process_init (argc=0, argv=0xbfffda84) at loader.c:1954 #16 0x4002e9fd in wine_init (argc=2, argv=0xbfffded4, error=0xbfffda84 "", error_size=1024) at loader.c:431 #17 0x3c001771 in main (argc=2, argv=0xbfffded4) at main.c:33 #18 0x40057917 in __libc_start_main () from /lib/libc.so.6
Any ideas ?
On Tue, 28 Oct 2003 13:25:53 +0300, Sir flyker scribed thus:
Under Windows my program exe file is about 6Mb. Under Linux and Wine it is about 50Mb (.so file). It is normal ?
You probably haven't stripped the binary, so it has full debug symbols in it. Try using the strip command.