diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/i386/reloc.h | 1 | ||||
-rw-r--r-- | arch/x86_64/reloc.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/arch/i386/reloc.h b/arch/i386/reloc.h index 3ca9d11d..490113a0 100644 --- a/arch/i386/reloc.h +++ b/arch/i386/reloc.h @@ -4,6 +4,7 @@ #define ETC_LDSO_PATH "/etc/ld-musl-i386.path" #define IS_COPY(x) ((x)==R_386_COPY) +#define IS_PLT(x) ((x)==R_386_JMP_SLOT) static inline void do_single_reloc(size_t *reloc_addr, int type, size_t sym_val, size_t sym_size, unsigned char *base_addr, size_t addend) { diff --git a/arch/x86_64/reloc.h b/arch/x86_64/reloc.h index 6642fdd4..b0bbfb3e 100644 --- a/arch/x86_64/reloc.h +++ b/arch/x86_64/reloc.h @@ -5,6 +5,7 @@ #define ETC_LDSO_PATH "/etc/ld-musl-x86_64.path" #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(size_t *reloc_addr, int type, size_t sym_val, size_t sym_size, unsigned char *base_addr, size_t addend) { |