[x86/Linux] Fix IL_STUB_PInvoke with RetBuf (dotnet/coreclr#10144)
authorHanjoung Lee <waterets@gmail.com>
Thu, 16 Mar 2017 03:29:34 +0000 (12:29 +0900)
committerJan Kotas <jkotas@microsoft.com>
Thu, 16 Mar 2017 03:29:34 +0000 (20:29 -0700)
commit5af8d1d3b0726cb2b68b22a7f3a84c503d47a937
tree5dc3f7cd076205d17e261433df8595ba1efea3b8
parent5c3ab362518adafd2f1d8f0ebf9ee4cdbee5e7c9
[x86/Linux] Fix IL_STUB_PInvoke with RetBuf (dotnet/coreclr#10144)

* [x86/Linux] Fix IL_STUB_PInvoke with RetBuf

Fix calling convention and IL_STUB_PInvoke for native functions
which was problematic for native functions that has
a RetBuf argument(struct size <= 8) on x86/Linux.

Fix dotnet/coreclr#10027

Commit migrated from https://github.com/dotnet/coreclr/commit/9422f47c5de802d877c08f9f5118471b375239b1
src/coreclr/src/vm/callingconvention.h
src/coreclr/src/vm/dllimport.cpp
src/coreclr/src/vm/i386/cgencpu.h
src/coreclr/src/vm/ilmarshalers.h