[x86/Linux] Get Frame Pointer from CallerSp (dotnet/coreclr#9235)
authorJonghyun Park <parjong@gmail.com>
Wed, 1 Feb 2017 01:46:32 +0000 (10:46 +0900)
committerJan Vorlicek <janvorli@microsoft.com>
Wed, 1 Feb 2017 01:46:32 +0000 (02:46 +0100)
commit023257957c4d7b899762047d1f5668067a37e6f4
tree016fc12b149acc245cf745b2f14ed4deaca72681
parent3c347eea4638b5706e7e570a419c743304c72ecf
[x86/Linux] Get Frame Pointer from CallerSp (dotnet/coreclr#9235)

GetGSCookieAddress uses pEbp to get the current frame pointer, but pEbp
is not properly initialized as discussed in dotnet/coreclr#8980.

This commit revises GetGSCookieAddress to use CallerSp (as in other
architectures) to get Frame Pointer in order to fix dotnet/coreclr#8980.

Commit migrated from https://github.com/dotnet/coreclr/commit/6be2bed47d823b49603969c37a382f994da0b0ff
src/coreclr/src/vm/eetwain.cpp