1570af302Sopenharmony_ci#define LDSO_ARCH "x86_64" 2570af302Sopenharmony_ci 3570af302Sopenharmony_ci#define REL_SYMBOLIC R_X86_64_64 4570af302Sopenharmony_ci#define REL_OFFSET32 R_X86_64_PC32 5570af302Sopenharmony_ci#define REL_GOT R_X86_64_GLOB_DAT 6570af302Sopenharmony_ci#define REL_PLT R_X86_64_JUMP_SLOT 7570af302Sopenharmony_ci#define REL_RELATIVE R_X86_64_RELATIVE 8570af302Sopenharmony_ci#define REL_COPY R_X86_64_COPY 9570af302Sopenharmony_ci#define REL_DTPMOD R_X86_64_DTPMOD64 10570af302Sopenharmony_ci#define REL_DTPOFF R_X86_64_DTPOFF64 11570af302Sopenharmony_ci#define REL_TPOFF R_X86_64_TPOFF64 12570af302Sopenharmony_ci#define REL_TLSDESC R_X86_64_TLSDESC 13570af302Sopenharmony_ci 14570af302Sopenharmony_ci#define CRTJMP(pc,sp) __asm__ __volatile__( \ 15570af302Sopenharmony_ci "mov %1,%%rsp ; jmp *%0" : : "r"(pc), "r"(sp) : "memory" ) 16570af302Sopenharmony_ci 17570af302Sopenharmony_ci#define GETFUNCSYM(fp, sym, got) __asm__ ( \ 18570af302Sopenharmony_ci ".hidden " #sym "\n" \ 19570af302Sopenharmony_ci " lea " #sym "(%%rip),%0\n" \ 20570af302Sopenharmony_ci : "=r"(*fp) : : "memory" ) 21