Skip to content

Commit

Permalink
[x86/Linux] changed to the AT&T syntax to solve a problem related bro…
Browse files Browse the repository at this point in the history
…ken stack. (dotnet#10932)

This is a problem similar to dotnet#10383.

Signed-off-by: ragmani <ragmani0216@gmail.com>
  • Loading branch information
ragmani authored and janvorli committed Apr 18, 2017
1 parent 12fe7a2 commit 432e8bf
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/vm/i386/asmhelpers.S
Original file line number Diff line number Diff line change
Expand Up @@ -752,8 +752,10 @@ NESTED_ENTRY StubDispatchFixupStub, _TEXT, NoHandler

mov esi, esp

push 0
push 0
.att_syntax
pushl $0
pushl $0
.intel_syntax noprefix

push eax // siteAddrForRegisterIndirect (for tailcalls)
push esi // pTransitionBlock
Expand Down Expand Up @@ -784,8 +786,10 @@ NESTED_ENTRY ExternalMethodFixupStub, _TEXT_ NoHandler
// EAX is return address into CORCOMPILE_EXTERNAL_METHOD_THUNK. Subtract 5 to get start address.
sub eax, 5

push 0
push 0
.att_syntax
pushl $0
pushl $0
.intel_syntax noprefix

push eax

Expand Down

0 comments on commit 432e8bf

Please sign in to comment.