From 3bfc7e15f46dc16acc07df06c6d04f3a5b88598d Mon Sep 17 00:00:00 2001 From: Michael Haubenwallner Date: Thu, 23 Apr 2015 12:38:12 +0200 Subject: [PATCH] have jump,make_fcontext show up as importable On AIX, building with aix-soname=svr4, nm is used to list public symbols in object files. This fixes the assembly to have make_fcontext and jump_fcontext show up as public symbols. --- src/asm/jump_ppc32_sysv_xcoff_gas.S | 4 ++++ src/asm/make_ppc32_sysv_xcoff_gas.S | 3 +++ 2 files changed, 7 insertions(+) diff --git a/src/asm/jump_ppc32_sysv_xcoff_gas.S b/src/asm/jump_ppc32_sysv_xcoff_gas.S index 6fd0d0b9..7cdf8a92 100644 --- a/src/asm/jump_ppc32_sysv_xcoff_gas.S +++ b/src/asm/jump_ppc32_sysv_xcoff_gas.S @@ -1,5 +1,9 @@ .globl .jump_fcontext +.globl jump_fcontext[DS] .align 2 +.csect jump_fcontext[DS] +jump_fcontext: + .long .jump_fcontext .jump_fcontext: # reserve space on stack subi 1, 1, 240 diff --git a/src/asm/make_ppc32_sysv_xcoff_gas.S b/src/asm/make_ppc32_sysv_xcoff_gas.S index 47616c28..5298d494 100644 --- a/src/asm/make_ppc32_sysv_xcoff_gas.S +++ b/src/asm/make_ppc32_sysv_xcoff_gas.S @@ -1,6 +1,9 @@ .globl make_fcontext[DS] .globl .make_fcontext[PR] .align 2 + .csect make_fcontext[DS] +make_fcontext: + .long .make_fcontext[PR] .csect .make_fcontext[PR], 3 #.make_fcontext: # save return address into R6