Skip to content

Commit 3ae122e

Browse files
authored
Merge pull request #2069 from aixoss/aix-asm-change
AIX asm syntax changes needed for shared object creation
2 parents 8502030 + b043a59 commit 3ae122e

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

common_power.h

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -598,9 +598,14 @@ REALNAME:;\
598598
#ifndef __64BIT__
599599
#define PROLOGUE \
600600
.machine "any";\
601+
.toc;\
601602
.globl .REALNAME;\
603+
.globl REALNAME;\
604+
.csect REALNAME[DS],3;\
605+
REALNAME:;\
606+
.long .REALNAME, TOC[tc0], 0;\
602607
.csect .text[PR],5;\
603-
.REALNAME:;
608+
.REALNAME:
604609

605610
#define EPILOGUE \
606611
_section_.text:;\
@@ -611,9 +616,14 @@ _section_.text:;\
611616

612617
#define PROLOGUE \
613618
.machine "any";\
619+
.toc;\
614620
.globl .REALNAME;\
621+
.globl REALNAME;\
622+
.csect REALNAME[DS],3;\
623+
REALNAME:;\
624+
.llong .REALNAME, TOC[tc0], 0;\
615625
.csect .text[PR], 5;\
616-
.REALNAME:;
626+
.REALNAME:
617627

618628
#define EPILOGUE \
619629
_section_.text:;\

0 commit comments

Comments
 (0)