1570af302Sopenharmony_ci#if defined(_SOFT_FLOAT) || defined(__NO_FPRS__) 2570af302Sopenharmony_ci#define FP_SUFFIX "-sf" 3570af302Sopenharmony_ci#else 4570af302Sopenharmony_ci#define FP_SUFFIX "" 5570af302Sopenharmony_ci#endif 6570af302Sopenharmony_ci 7570af302Sopenharmony_ci#define LDSO_ARCH "powerpc" FP_SUFFIX 8570af302Sopenharmony_ci 9570af302Sopenharmony_ci#define TPOFF_K (-0x7000) 10570af302Sopenharmony_ci 11570af302Sopenharmony_ci#define REL_SYMBOLIC R_PPC_ADDR32 12570af302Sopenharmony_ci#define REL_USYMBOLIC R_PPC_UADDR32 13570af302Sopenharmony_ci#define REL_GOT R_PPC_GLOB_DAT 14570af302Sopenharmony_ci#define REL_PLT R_PPC_JMP_SLOT 15570af302Sopenharmony_ci#define REL_RELATIVE R_PPC_RELATIVE 16570af302Sopenharmony_ci#define REL_COPY R_PPC_COPY 17570af302Sopenharmony_ci#define REL_DTPMOD R_PPC_DTPMOD32 18570af302Sopenharmony_ci#define REL_DTPOFF R_PPC_DTPREL32 19570af302Sopenharmony_ci#define REL_TPOFF R_PPC_TPREL32 20570af302Sopenharmony_ci 21570af302Sopenharmony_ci#define CRTJMP(pc,sp) __asm__ __volatile__( \ 22570af302Sopenharmony_ci "mr 1,%1 ; mtlr %0 ; blr" : : "r"(pc), "r"(sp) : "memory" ) 23570af302Sopenharmony_ci 24570af302Sopenharmony_ci#define GETFUNCSYM(fp, sym, got) __asm__ ( \ 25570af302Sopenharmony_ci ".hidden " #sym " \n" \ 26570af302Sopenharmony_ci " bl 1f \n" \ 27570af302Sopenharmony_ci " .long " #sym "-. \n" \ 28570af302Sopenharmony_ci "1: mflr %1 \n" \ 29570af302Sopenharmony_ci " lwz %0, 0(%1) \n" \ 30570af302Sopenharmony_ci " add %0, %0, %1 \n" \ 31570af302Sopenharmony_ci : "=r"(*(fp)), "=r"((int){0}) : : "memory", "lr" ) 32