#define IS_COPY(x) ((x)==R_ARM_COPY)
#define IS_PLT(x) ((x)==R_ARM_JUMP_SLOT)
-static inline void do_single_reloc(
+static inline int do_single_reloc(
struct dso *self, unsigned char *base_addr,
size_t *reloc_addr, int type, size_t addend,
Sym *sym, size_t sym_size,
: self->tls_offset + 8;
break;
}
+ return 0;
}
#define NO_LEGACY_INITFINI
#define IS_COPY(x) ((x)==R_386_COPY)
#define IS_PLT(x) ((x)==R_386_JMP_SLOT)
-static inline void do_single_reloc(
+static inline int do_single_reloc(
struct dso *self, unsigned char *base_addr,
size_t *reloc_addr, int type, size_t addend,
Sym *sym, size_t sym_size,
: self->tls_offset;
break;
}
+ return 0;
}
#define IS_COPY(x) ((x)==R_MICROBLAZE_COPY)
#define IS_PLT(x) ((x)==R_MICROBLAZE_JUMP_SLOT)
-static inline void do_single_reloc(
+static inline int do_single_reloc(
struct dso *self, unsigned char *base_addr,
size_t *reloc_addr, int type, size_t addend,
Sym *sym, size_t sym_size,
*reloc_addr = def.sym->st_value + addend;
break;
}
+ return 0;
}
#include "syscall.h"
#define IS_COPY(x) ((x)==R_MIPS_COPY)
#define IS_PLT(x) 1
-static inline void do_single_reloc(
+static inline int do_single_reloc(
struct dso *self, unsigned char *base_addr,
size_t *reloc_addr, int type, size_t addend,
Sym *sym, size_t sym_size,
: self->tls_offset - 0x7000;
break;
}
+ return 0;
}
void __reloc_self(int c, size_t *a, size_t *dynv, size_t *got)
#define IS_PLT(x) ((x)==R_PPC_JMP_SLOT)
// see linux' arch/powerpc/include/asm/elf.h
-static inline void do_single_reloc(
+static inline int do_single_reloc(
struct dso *self, unsigned char *base_addr,
size_t *reloc_addr, int type, size_t addend,
Sym *sym, size_t sym_size,
: self->tls_offset - 0x7000;
break;
}
+ return 0;
}
void __reloc_self(int c, size_t *a, size_t *dynv)
#define IS_COPY(x) ((x) == R_SH_COPY)
#define IS_PLT(x) ((x) == R_SH_JMP_SLOT)
-static inline void do_single_reloc(
+static inline int do_single_reloc(
struct dso *self, unsigned char *base_addr,
size_t *reloc_addr, int type, size_t addend,
Sym *sym, size_t sym_size,
: self->tls_offset + 8;
break;
}
+ return 0;
}
#define IS_COPY(x) ((x)==R_X86_64_COPY)
#define IS_PLT(x) ((x)==R_X86_64_JUMP_SLOT)
-static inline void do_single_reloc(
+static inline int do_single_reloc(
struct dso *self, unsigned char *base_addr,
size_t *reloc_addr, int type, size_t addend,
Sym *sym, size_t sym_size,
: 0 - self->tls_offset) + addend;
break;
}
+ return 0;
}
#define IS_COPY(x) ((x)==R_X86_64_COPY)
#define IS_PLT(x) ((x)==R_X86_64_JUMP_SLOT)
-static inline void do_single_reloc(
+static inline int do_single_reloc(
struct dso *self, unsigned char *base_addr,
size_t *reloc_addr, int type, size_t addend,
Sym *sym, size_t sym_size,
: 0 - self->tls_offset) + addend;
break;
}
+ return 0;
}