You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

35 lines
595 B

#if __BYTE_ORDER == __BIG_ENDIAN
#define ENDIAN_SUFFIX "eb"
13 years ago
#else
#define ENDIAN_SUFFIX ""
#endif
#define LDSO_ARCH "sh" ENDIAN_SUFFIX
#define TPOFF_K 8
13 years ago
static int remap_rel(int type)
13 years ago
{
switch(type) {
case R_SH_DIR32:
return REL_SYMBOLIC;
case R_SH_REL32:
return REL_OFFSET;
13 years ago
case R_SH_GLOB_DAT:
return REL_GOT;
13 years ago
case R_SH_JMP_SLOT:
return REL_PLT;
13 years ago
case R_SH_RELATIVE:
return REL_RELATIVE;
13 years ago
case R_SH_COPY:
return REL_COPY;
13 years ago
case R_SH_TLS_DTPMOD32:
return REL_DTPMOD;
13 years ago
case R_SH_TLS_DTPOFF32:
return REL_DTPOFF;
13 years ago
case R_SH_TLS_TPOFF32:
return REL_TPOFF;
13 years ago
}
return 0;
13 years ago
}