Skip to content

Commit 7d305a7

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 7d305a7

File tree

2 files changed

+22
-9
lines changed

2 files changed

+22
-9
lines changed

Zend/asm/jump_ppc64_sysv_xcoff_gas.S

Lines changed: 11 additions & 3 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
@@ -27,7 +35,7 @@
2735
std 25, 96(1) # save R25
2836
std 26, 104(1) # save R26
2937
std 27, 112(1) # save R27
30-
std 29, 120(1) # save R28
38+
std 28, 120(1) # save R28
3139
std 29, 128(1) # save R29
3240
std 30, 136(1) # save R30
3341
std 31, 144(1) # save R31

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)