Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r77581 - trunk/libs/context/src/asm
From: oliver.kowalke_at_[hidden]
Date: 2012-03-27 03:24:21


Author: olli
Date: 2012-03-27 03:24:20 EDT (Tue, 27 Mar 2012)
New Revision: 77581
URL: http://svn.boost.org/trac/boost/changeset/77581

Log:
context: add assembler attributes to ppc64 asm

Text files modified:
   trunk/libs/context/src/asm/fcontext_ppc64_sysv_elf_gas.S | 45 +++++++++++++++++++++++++++++----------
   1 files changed, 33 insertions(+), 12 deletions(-)

Modified: trunk/libs/context/src/asm/fcontext_ppc64_sysv_elf_gas.S
==============================================================================
--- trunk/libs/context/src/asm/fcontext_ppc64_sysv_elf_gas.S (original)
+++ trunk/libs/context/src/asm/fcontext_ppc64_sysv_elf_gas.S 2012-03-27 03:24:20 EDT (Tue, 27 Mar 2012)
@@ -87,11 +87,18 @@
  * *
  * *****************************************************************/
 
-.text
-.globl boost_fcontext_start
+.section ".text"
 .align 2
-.type boost_fcontext_start,@function
+.globl boost_fcontext_start
+.section ".opd","aw"
+.align 3
 boost_fcontext_start:
+.quad .boost_fcontext_start,.TOC._at_tocbase,0
+.previous
+.size boost_fcontext_start,24
+.type .boost_fcontext_start,@function
+.globl .boost_fcontext_start
+.boost_fcontext_start:
     std %r13, 0(%r3) # save R13
     std %r14, 8(%r3) # save R14
     std %r15, 16(%r3) # save R15
@@ -193,13 +200,20 @@
     mtctr %r0 # restore CTR
 
     bctr # start to context
-.size boost_fcontext_start, .-boost_fcontext_start
+.size .boost_fcontext_start, .-.boost_fcontext_start
 
-.text
-.globl boost_fcontext_jump
+.section ".text"
 .align 2
-.type boost_fcontext_jump,@function
+.globl boost_fcontext_jump
+.section ".opd","aw"
+.align 3
 boost_fcontext_jump:
+.quad .boost_fcontext_jump,.TOC._at_tocbase,0
+.previous
+.size boost_fcontext_jump,24
+.type .boost_fcontext_jump,@function
+.globl .boost_fcontext_jump
+.boost_fcontext_jump:
     std %r13, 0(%r3) # save R13
     std %r14, 8(%r3) # save R14
     std %r15, 16(%r3) # save R15
@@ -302,13 +316,20 @@
     mtctr %r0 # restore CTR
 
     bctr # jump to context
-.size boost_fcontext_jump, .-boost_fcontext_jump
+.size .boost_fcontext_jump, .-.boost_fcontext_jump
 
-.text
-.globl boost_fcontext_make
+.section ".text"
 .align 2
-.type boost_fcontext_make,@function
+.globl boost_fcontext_make
+.section ".opd","aw"
+.align 3
 boost_fcontext_make:
+.quad .boost_fcontext_make,.TOC._at_tocbase,0
+.previous
+.size boost_fcontext_make,24
+.type .boost_fcontext_make,@function
+.globl .boost_fcontext_make
+.boost_fcontext_make:
     std %r3, 0(%r3) # save the current context
     std %r4, 176(%r3) # save the address of the function supposed to be run
     std %r5, 16(%r3) # save void pointer
@@ -353,4 +374,4 @@
 2:
     li %r3, 0 # set return value to zero
     bl _exit_at_plt # exit application
-.size boost_fcontext_make, .-boost_fcontext_make
+.size .boost_fcontext_make, .-.boost_fcontext_make


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