From 7397c70eb4b770d50734e24b44d8a6ef146c911c Mon Sep 17 00:00:00 2001 From: pini Date: Thu, 9 Dec 2010 15:30:17 +0000 Subject: [PATCH] Output the assembly function in the text section. git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@9109 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- src/simix/smx_context_raw.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/simix/smx_context_raw.c b/src/simix/smx_context_raw.c index 3a76d5efe0..71c35ffc59 100644 --- a/src/simix/smx_context_raw.c +++ b/src/simix/smx_context_raw.c @@ -46,7 +46,9 @@ extern void raw_swapcontext(raw_stack_t* old, raw_stack_t* new); #ifdef PROCESSOR_i686 __asm__ ( + ".text\n" ".globl raw_makecontext\n" + ".type raw_makecontext,@function\n" "raw_makecontext:\n" " movl 4(%esp),%eax\n" /* stack */ " addl 8(%esp),%eax\n" /* size */ @@ -64,7 +66,9 @@ __asm__ ( ); __asm__ ( + ".text\n" ".globl raw_swapcontext\n" + ".type raw_swapcontext,@function\n" "raw_swapcontext:\n" " movl 4(%esp),%eax\n" /* old */ " movl 8(%esp),%edx\n" /* new */ @@ -82,7 +86,9 @@ __asm__ ( ); #elif PROCESSOR_x86_64 __asm__ ( + ".text\n" ".globl raw_makecontext\n" + ".type raw_makecontext,@function\n" "raw_makecontext:\n" /* Calling convention sets the arguments in rdi, rsi, rdx and rcx, respectively */ " movq %rdi,%rax\n" /* stack */ " addq %rsi,%rax\n" /* size */ @@ -105,7 +111,9 @@ __asm__ ( ); __asm__ ( + ".text\n" ".globl raw_swapcontext\n" + ".type raw_swapcontext,@function\n" "raw_swapcontext:\n" /* Calling convention sets the arguments in rdi and rsi, respectively */ " pushq %rdi\n" " pushq %rsi\n" -- 2.20.1