Merge "crtbegin: Correctly align ESP to 16 for __i386__"

am: 5bf2c20f43

Change-Id: I5b38b1b07b068489b29443dcb3ef087ee07d23b3
This commit is contained in:
Ryan Prichard 2018-02-09 07:06:50 +00:00 committed by android-build-merger
commit 9ae7d46291

View file

@ -53,7 +53,7 @@ __asm__(PRE "mov x0,sp; b _start_main" POST);
#elif defined(__arm__) #elif defined(__arm__)
__asm__(PRE "mov r0,sp; b _start_main" POST); __asm__(PRE "mov r0,sp; b _start_main" POST);
#elif defined(__i386__) #elif defined(__i386__)
__asm__(PRE "movl %esp,%eax; andl $~0xf,%esp; pushl %eax; calll _start_main" POST); __asm__(PRE "movl %esp,%eax; andl $~0xf,%esp; subl $12,%esp; pushl %eax; calll _start_main" POST);
#elif defined(__x86_64__) #elif defined(__x86_64__)
__asm__(PRE "movq %rsp,%rdi; andq $~0xf,%rsp; callq _start_main" POST); __asm__(PRE "movq %rsp,%rdi; andq $~0xf,%rsp; callq _start_main" POST);
#else #else