Skip to content

Commit ae8cae1

Browse files
author
Clément Chigot
committed
Zend/asm: adjust XCOFF64 asm files for AIX assembler
AIX assembler is a bit more strict than GNU assembler. Thus, adjust the XCOFF asm files to be able to accept both assembler.
1 parent 89007f6 commit ae8cae1

File tree

2 files changed

+21
-8
lines changed

2 files changed

+21
-8
lines changed

Zend/asm/jump_ppc64_sysv_xcoff_gas.S

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,16 @@
66
http://www.boost.org/LICENSE_1_0.txt)
77
*/
88

9-
.align 2
10-
.globl .jump_fcontext
9+
.file "jump_ppc64_sysv_xcoff_gas.S"
10+
.toc
11+
.csect .text[PR], 5
12+
.align 2
13+
.globl jump_fcontext[DS]
14+
.globl .jump_fcontext
15+
.csect jump_fcontext[DS], 3
16+
jump_fcontext:
17+
.llong .jump_fcontext[PR], TOC[tc0], 0
18+
.csect .text[PR], 5
1119
.jump_fcontext:
1220
# reserve space on stack
1321
subi 1, 1, 184

Zend/asm/make_ppc64_sysv_xcoff_gas.S

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,17 @@
44
(See accompanying file LICENSE_1_0.txt or copy at
55
http://www.boost.org/LICENSE_1_0.txt)
66
*/
7-
.globl make_fcontext[DS]
8-
.globl .make_fcontext[PR]
9-
.align 2
10-
.csect .make_fcontext[PR], 3
11-
.globl _make_fcontext
12-
#._make_fcontext:
7+
.file "make_ppc64_sysv_xcoff_gas.S"
8+
.toc
9+
.csect .text[PR], 5
10+
.align 2
11+
.globl make_fcontext[DS]
12+
.globl .make_fcontext
13+
.csect make_fcontext[DS], 3
14+
make_fcontext:
15+
.llong .make_fcontext[PR], TOC[tc0], 0
16+
.csect .text[PR], 5
17+
.make_fcontext:
1318
# save return address into R6
1419
mflr 6
1520

0 commit comments

Comments
 (0)