2016-11-14 16:06:15 +03:00
|
|
|
#ifndef __COMPEL_UAPI_HANDLE_ELF__
|
|
|
|
#define __COMPEL_UAPI_HANDLE_ELF__
|
|
|
|
|
2021-07-19 07:39:51 +00:00
|
|
|
#define COMPEL_TYPE_INT (1u << 0)
|
|
|
|
#define COMPEL_TYPE_LONG (1u << 1)
|
|
|
|
#define COMPEL_TYPE_GOTPCREL (1u << 2)
|
2020-04-08 10:21:11 +08:00
|
|
|
#ifdef CONFIG_MIPS
|
2021-07-19 07:39:51 +00:00
|
|
|
#define COMPEL_TYPE_MIPS_26 (1u << 3)
|
|
|
|
#define COMPEL_TYPE_MIPS_HI16 (1u << 4)
|
|
|
|
#define COMPEL_TYPE_MIPS_LO16 (1u << 5)
|
|
|
|
#define COMPEL_TYPE_MIPS_HIGHER (1u << 6)
|
|
|
|
#define COMPEL_TYPE_MIPS_HIGHEST (1u << 7)
|
|
|
|
#define COMPEL_TYPE_MIPS_64 (1u << 8)
|
2020-04-08 10:21:11 +08:00
|
|
|
#endif
|
2016-11-14 16:06:15 +03:00
|
|
|
typedef struct {
|
2021-07-19 07:39:51 +00:00
|
|
|
unsigned int offset;
|
|
|
|
unsigned int type;
|
|
|
|
long addend;
|
|
|
|
long value;
|
2016-11-14 16:06:15 +03:00
|
|
|
} compel_reloc_t;
|
|
|
|
|
|
|
|
#endif
|