diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-05-31 14:06:35 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-05-31 14:06:35 +0000 |
commit | c423b5cb81080adfd32f227ee62fc19e9696ee9d (patch) | |
tree | 0af9e94e939a086217b190e912e90b12fcdc9e13 /sys/arch/alpha | |
parent | ae796982a086e0e348f6e4671798bf9b3b39f342 (diff) |
Relocation types on alpha.
Diffstat (limited to 'sys/arch/alpha')
-rw-r--r-- | sys/arch/alpha/include/reloc.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/sys/arch/alpha/include/reloc.h b/sys/arch/alpha/include/reloc.h new file mode 100644 index 00000000000..24bb0311f76 --- /dev/null +++ b/sys/arch/alpha/include/reloc.h @@ -0,0 +1,35 @@ +#ifndef _MACH_RELOC_H_ +#define _MACH_RELOC_H_ + +#define RELOC_NONE 0 /* No reloc */ +#define RELOC_REFLONG 1 /* Direct 32 bit */ +#define RELOC_REFQUAD 2 /* Direct 64 bit */ +#define RELOC_GPREL32 3 /* GP relative 32 bit */ +#define RELOC_LITERAL 4 /* GP relative 16 bit w/optimization */ +#define RELOC_LITUSE 5 /* Optimization hint for LITERAL */ +#define RELOC_GPDISP 6 /* Add displacement to GP */ +#define RELOC_BRADDR 7 /* PC+4 relative 23 bit shifted */ +#define RELOC_HINT 8 /* PC+4 relative 16 bit shifted */ +#define RELOC_SREL16 9 /* PC relative 16 bit */ +#define RELOC_SREL32 10 /* PC relative 32 bit */ +#define RELOC_SREL64 11 /* PC relative 64 bit */ +#define RELOC_OP_PUSH 12 /* OP stack push */ +#define RELOC_OP_STORE 13 /* OP stack pop and store */ +#define RELOC_OP_PSUB 14 /* OP stack subtract */ +#define RELOC_OP_PRSHIFT 15 /* OP stack right shift */ +#define RELOC_GPVALUE 16 +#define RELOC_GPRELHIGH 17 +#define RELOC_GPRELLOW 18 +#define RELOC_IMMED_GP_16 19 +#define RELOC_IMMED_GP_HI32 20 +#define RELOC_IMMED_SCN_HI32 21 +#define RELOC_IMMED_BRELOC_HI32 22 +#define RELOC_IMMED_LO32 23 +#define RELOC_COPY 24 /* Copy symbol at runtime */ +#define RELOC_GLOB_DAT 25 /* Create GOT entry */ +#define RELOC_JMP_SLOT 26 /* Create PLT entry */ +#define RELOC_RELATIVE 27 /* Adjust by program base */ + +#define R_TYPE(X) __CONCAT(RELOC_,X) + +#endif /* _MACH_RELOC_H_ */ |