[PATCH] Fix LD test FAIL: application runtime segfault check on Cygwin
Dave Korn
dave.korn.cygwin@googlemail.com
Sat Mar 14 17:36:00 GMT 2009
Hi all,
The cygwin-specific test ld-autoimport/autoimport.exp links a DLL without
supplying a -e option pointing to a suitable DllMain-style init function. In
its absence, the first exported function in the DLL is taken to be the
entrypoint, which is very wrong in this particular case as it's actually a
test routine that calls printf(..), which doesn't work in early init, so the
test app crashes when the runtime loader tries to start up the test DLL.
The attached patch fixes that test by pointing the entrypoint at Cygwin's
generic DllMain function, _cygwin_dll_entry(). Tested on Cygwin and it fixes
the test; no other targets affected.
Ok for head?
ld/testsuite/ChangeLog
* ld-auto-import/auto-import.exp: Add missing dll entrypoint.
cheers,
DaveK
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ya-testsuite-fixes.diff
URL: <https://sourceware.org/pipermail/binutils/attachments/20090314/9c7ceb20/attachment.ksh>
More information about the Binutils
mailing list