On Fri, 19 Jul 2019 at 10:23, Biswapriyo Nath wrote: > > If a function calls both cygwin and Windows functions the binary creates > extra subroutine (in assembly) for cygwin ones. Example: > > * Windows function: > > call cs:CreatePipe > > * cygwin function: > > call ioctl > > ioctl proc near > jmp cs:__imp_ioctl > endp > > The binary is statically compiled. Why there are extra subroutines? Is this > "by-design"? Or am I missing something?
This is how Windows DLLs work. See also <https://stackoverflow.com/a/22688670/341065>. -- VH -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple