about summary refs log tree commit diff
path: root/arch/or1k/reloc.h
blob: ddee45c53d1293915a8860d2e80d1b5c59d7b8b0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#define LDSO_ARCH "or1k"

#define TPOFF_K 0

#define REL_SYMBOLIC    R_OR1K_32
#define REL_GOT         R_OR1K_GLOB_DAT
#define REL_PLT         R_OR1K_JMP_SLOT
#define REL_RELATIVE    R_OR1K_RELATIVE
#define REL_COPY        R_OR1K_COPY
#define REL_DTPMOD      R_OR1K_TLS_DTPMOD
#define REL_DTPOFF      R_OR1K_TLS_DTPOFF
#define REL_TPOFF       R_OR1K_TLS_TPOFF

#define CRTJMP(pc,sp) __asm__ __volatile__( \
	"l.jr %0 ; l.ori r1,%1,0" : : "r"(pc), "r"(sp) : "memory" )