2013-07-18 23:29:44 +00:00
|
|
|
#define LDSO_ARCH "x86_64"
|
2011-06-25 05:56:34 +00:00
|
|
|
|
2015-04-13 06:56:26 +00:00
|
|
|
#define REL_SYMBOLIC R_X86_64_64
|
|
|
|
#define REL_OFFSET32 R_X86_64_PC32
|
|
|
|
#define REL_GOT R_X86_64_GLOB_DAT
|
|
|
|
#define REL_PLT R_X86_64_JUMP_SLOT
|
|
|
|
#define REL_RELATIVE R_X86_64_RELATIVE
|
|
|
|
#define REL_COPY R_X86_64_COPY
|
|
|
|
#define REL_DTPMOD R_X86_64_DTPMOD64
|
|
|
|
#define REL_DTPOFF R_X86_64_DTPOFF64
|
|
|
|
#define REL_TPOFF R_X86_64_TPOFF64
|
|
|
|
#define REL_TLSDESC R_X86_64_TLSDESC
|
|
|
|
|
|
|
|
#define CRTJMP(pc,sp) __asm__ __volatile__( \
|
|
|
|
"mov %1,%%rsp ; jmp *%0" : : "r"(pc), "r"(sp) : "memory" )
|
2015-09-17 07:28:44 +00:00
|
|
|
|
|
|
|
#define GETFUNCSYM(fp, sym, got) __asm__ ( \
|
|
|
|
".hidden " #sym "\n" \
|
|
|
|
" lea " #sym "(%%rip),%0\n" \
|
|
|
|
: "=r"(*fp) : : "memory" )
|