mirror of
git://git.musl-libc.org/musl
synced 2025-03-06 11:47:28 +00:00
add fdpic structs and reloc types for dynamic linking
This commit is contained in:
parent
a735f53e6a
commit
eb567c12cd
@ -36,6 +36,17 @@ enum {
|
||||
REL_TPOFF,
|
||||
REL_TPOFF_NEG,
|
||||
REL_TLSDESC,
|
||||
REL_FUNCDESC,
|
||||
REL_FUNCDESC_VAL,
|
||||
};
|
||||
|
||||
struct fdpic_loadseg {
|
||||
uintptr_t addr, p_vaddr, p_memsz;
|
||||
};
|
||||
|
||||
struct fdpic_loadmap {
|
||||
unsigned short version, nsegs;
|
||||
struct fdpic_loadseg segs[];
|
||||
};
|
||||
|
||||
#include "reloc.h"
|
||||
@ -44,6 +55,11 @@ enum {
|
||||
(R_TYPE(x) == REL_RELATIVE) || \
|
||||
(R_TYPE(x) == REL_SYM_OR_REL && !R_SYM(x)) )
|
||||
|
||||
#define IS_FDPIC_RELATIVE(x,s) ( ( \
|
||||
(R_TYPE(x) == REL_FUNCDESC_VAL) || \
|
||||
(R_TYPE(x) == REL_SYMBOLIC) ) \
|
||||
&& (((s)[R_SYM(x)].st_info & 0xf) == STT_SECTION) )
|
||||
|
||||
#ifndef NEED_MIPS_GOT_RELOCS
|
||||
#define NEED_MIPS_GOT_RELOCS 0
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user