Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Commit 432e8bf

Browse files
ragmanijanvorli
authored andcommitted
[x86/Linux] changed to the AT&T syntax to solve a problem related broken stack. (#10932)
This is a problem similar to #10383. Signed-off-by: ragmani <[email protected]>
1 parent 12fe7a2 commit 432e8bf

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/vm/i386/asmhelpers.S

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -752,8 +752,10 @@ NESTED_ENTRY StubDispatchFixupStub, _TEXT, NoHandler
752752

753753
mov esi, esp
754754

755-
push 0
756-
push 0
755+
.att_syntax
756+
pushl $0
757+
pushl $0
758+
.intel_syntax noprefix
757759

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

787-
push 0
788-
push 0
789+
.att_syntax
790+
pushl $0
791+
pushl $0
792+
.intel_syntax noprefix
789793

790794
push eax
791795

0 commit comments

Comments
 (0)