[x86/Linux] Fix UMThunkStub calling convension (#8714)
authorSaeHie Park <saehie.park@gmail.com>
Mon, 2 Jan 2017 14:59:40 +0000 (23:59 +0900)
committerJan Vorlicek <janvorli@microsoft.com>
Mon, 2 Jan 2017 14:59:40 +0000 (15:59 +0100)
commit0a11492d52faa85c551761f8390be5de9d74e5ec
tree5755baca985a72d7ec0f02d6d2ba5da9c75f8af8
parent4a5c304b5115ddcd8ac7838a1ce87c5d4ad03ccf
[x86/Linux] Fix UMThunkStub calling convension (#8714)

This fixes reverse P/Invoke segment faults by handling cdecl from UM to
fastcall for Managed code, which corrects many CoreFX unit test cases including CharMinValue.exe.
First and second parameter(s) are set to ECX, EDX and rest to the stack.
src/vm/i386/umthunkstub.S