Skip to content

Commit

Permalink
Zend/asm: adjust XCOFF64 asm files for AIX assembler
Browse files Browse the repository at this point in the history
AIX assembler is a bit more strict than GNU assembler. Thus, adjust
the XCOFF asm files to be able to accept both assembler.
  • Loading branch information
Clément Chigot committed Nov 2, 2021
1 parent 89007f6 commit 7d305a7
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 9 deletions.
14 changes: 11 additions & 3 deletions Zend/asm/jump_ppc64_sysv_xcoff_gas.S
Expand Up @@ -6,8 +6,16 @@
http://www.boost.org/LICENSE_1_0.txt)
*/

.align 2
.globl .jump_fcontext
.file "jump_ppc64_sysv_xcoff_gas.S"
.toc
.csect .text[PR], 5
.align 2
.globl jump_fcontext[DS]
.globl .jump_fcontext
.csect jump_fcontext[DS], 3
jump_fcontext:
.llong .jump_fcontext[PR], TOC[tc0], 0
.csect .text[PR], 5
.jump_fcontext:
# reserve space on stack
subi 1, 1, 184
Expand All @@ -27,7 +35,7 @@
std 25, 96(1) # save R25
std 26, 104(1) # save R26
std 27, 112(1) # save R27
std 29, 120(1) # save R28
std 28, 120(1) # save R28
std 29, 128(1) # save R29
std 30, 136(1) # save R30
std 31, 144(1) # save R31
Expand Down
17 changes: 11 additions & 6 deletions Zend/asm/make_ppc64_sysv_xcoff_gas.S
Expand Up @@ -4,12 +4,17 @@
(See accompanying file LICENSE_1_0.txt or copy at
http://www.boost.org/LICENSE_1_0.txt)
*/
.globl make_fcontext[DS]
.globl .make_fcontext[PR]
.align 2
.csect .make_fcontext[PR], 3
.globl _make_fcontext
#._make_fcontext:
.file "make_ppc64_sysv_xcoff_gas.S"
.toc
.csect .text[PR], 5
.align 2
.globl make_fcontext[DS]
.globl .make_fcontext
.csect make_fcontext[DS], 3
make_fcontext:
.llong .make_fcontext[PR], TOC[tc0], 0
.csect .text[PR], 5
.make_fcontext:
# save return address into R6
mflr 6

Expand Down

0 comments on commit 7d305a7

Please sign in to comment.