Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r78118 - trunk/libs/context/src/asm
From: oliver.kowalke_at_[hidden]
Date: 2012-04-21 17:20:31


Author: olli
Date: 2012-04-21 17:20:31 EDT (Sat, 21 Apr 2012)
New Revision: 78118
URL: http://svn.boost.org/trac/boost/changeset/78118

Log:
context: return zero as exit code if context function returns on i386

Text files modified:
   trunk/libs/context/src/asm/fcontext_i386_sysv_elf_gas.S | 2 +-
   trunk/libs/context/src/asm/fcontext_i386_sysv_macho_gas.S | 2 +-
   2 files changed, 2 insertions(+), 2 deletions(-)

Modified: trunk/libs/context/src/asm/fcontext_i386_sysv_elf_gas.S
==============================================================================
--- trunk/libs/context/src/asm/fcontext_i386_sysv_elf_gas.S (original)
+++ trunk/libs/context/src/asm/fcontext_i386_sysv_elf_gas.S 2012-04-21 17:20:31 EDT (Sat, 21 Apr 2012)
@@ -124,7 +124,7 @@
 3: popl %ebx /* address of label 3 */
     addl $_GLOBAL_OFFSET_TABLE_+[.-3b], %ebx /* compute address of GOT and store it in EBX */
 
- movl %eax, %eax
+ xorl %eax, %eax
     pushl %eax /* exit code is zero */
     call _exit_at_PLT /* exit application */
     hlt

Modified: trunk/libs/context/src/asm/fcontext_i386_sysv_macho_gas.S
==============================================================================
--- trunk/libs/context/src/asm/fcontext_i386_sysv_macho_gas.S (original)
+++ trunk/libs/context/src/asm/fcontext_i386_sysv_macho_gas.S 2012-04-21 17:20:31 EDT (Sat, 21 Apr 2012)
@@ -121,7 +121,7 @@
 3: popl %ebx /* address of label 3 */
     addl $_GLOBAL_OFFSET_TABLE_+[.-3b], %ebx /* compute address of GOT and store it in EBX */
 
- movl %eax, %eax
+ xorl %eax, %eax
     pushl %eax /* exit code is zero */
     call _exit_at_PLT /* exit application */
     hlt


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk