Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use valid instructions in StubPrecode and NDirectImportPrecode on x64 #34611

Merged
merged 1 commit into from
Apr 7, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/coreclr/src/vm/i386/stublinkerx86.h
Original file line number Diff line number Diff line change
Expand Up @@ -511,9 +511,9 @@ struct InvalidPrecode {
struct StubPrecode {

#ifdef HOST_64BIT
static const BYTE Type = 0x40;
static const BYTE Type = 0xF8;
// mov r10,pMethodDesc
// inc eax
// clc
// jmp Stub
#else
static const BYTE Type = 0xED;
Expand Down Expand Up @@ -584,9 +584,9 @@ typedef DPTR(StubPrecode) PTR_StubPrecode;
struct NDirectImportPrecode : StubPrecode {

#ifdef HOST_64BIT
static const int Type = 0x48;
static const int Type = 0xF9;
// mov r10,pMethodDesc
// dec eax
// stc
// jmp NDirectImportThunk
#else
static const int Type = 0xC0;
Expand Down