[x86/Linux] changed to the AT&T syntax to solve a problem related broken stack. ...
authorragmani <ragmani0216@gmail.com>
Tue, 18 Apr 2017 10:01:55 +0000 (19:01 +0900)
committerJan Vorlicek <janvorli@microsoft.com>
Tue, 18 Apr 2017 10:01:55 +0000 (03:01 -0700)
This is a problem similar to dotnet/coreclr#10383.

Signed-off-by: ragmani <ragmani0216@gmail.com>
Commit migrated from https://github.com/dotnet/coreclr/commit/432e8bf1efbc696b842b1fe5004fed5319d58818

src/coreclr/src/vm/i386/asmhelpers.S

index 98525ac..647442c 100644 (file)
@@ -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
@@ -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