[Bug ld/4600] MinGW32 DLL causes MSVC application initialization failure during runtime

2007-06-07 Thread all_my_junk_e-mail at hotmail dot com
--- Additional Comments From all_my_junk_e-mail at hotmail dot com 2007-06-07 17:18 --- Created an attachment (id=1881) --> (http://sourceware.org/bugzilla/attachment.cgi?id=1881&action=view) Test case mentioned in original post. -- http://sourceware.org/bugzilla/show_bug.cgi?id=46

[Bug ld/4600] New: MinGW32 DLL causes MSVC application initialization failure during runtime

2007-06-07 Thread all_my_junk_e-mail at hotmail dot com
A simple mingw32 DLL with two source files (and headers). If the source file has a name that doesn't alphabetically come before all other source files, the resulting DLL causes a client MSVC application to crash during runtime. There are no compiler or linker errors. The attached archive contains

ld behavior on different architectures

2007-06-07 Thread Constantine Kousoulos
Hello all, First of all, excuse me if i'm asking a naive question. I'm a complete noob at using linker scripts (and generally ld), so please give me a helping hand. I use the same linker script when building a (non linux) kernel natively on i386 and on amd64. The linker script defines the fi