diff options
author | Paul Mundt <lethal@linux-sh.org> | 2005-03-31 19:18:54 +0000 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2005-03-31 19:18:54 +0000 |
commit | e643bb46c58a9eaf0dfb77e60c47539b487435be (patch) | |
tree | 055ad80c45ee36bb522984aaf61c4beba8da505e /include | |
parent | 35615131955ac4be10c799a4c1d5a7b417d62bc9 (diff) |
Add some more SH relocation types.
Diffstat (limited to 'include')
-rw-r--r-- | include/elf.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/include/elf.h b/include/elf.h index 0dcbc8f0f..7fce7baaf 100644 --- a/include/elf.h +++ b/include/elf.h @@ -2311,6 +2311,12 @@ typedef Elf32_Addr Elf32_Conflict; /* SH specific declarations */ +/* SH specific values for `st_other'. */ + +/* If set, this is a symbol pointing to SHmedia code, which will be branched + to, so need to add 1 to the symbol value. */ +#define STO_SH5_ISA32 (1 << 2) + /* SH relocs. */ #define R_SH_NONE 0 #define R_SH_DIR32 1 @@ -2349,6 +2355,13 @@ typedef Elf32_Addr Elf32_Conflict; #define R_SH_RELATIVE 165 #define R_SH_GOTOFF 166 #define R_SH_GOTPC 167 +#define R_SH_RELATIVE_LOW16 197 +#define R_SH_RELATIVE_MEDLOW16 198 +#define R_SH_IMM_LOW16 246 +#define R_SH_IMM_LOW16_PCREL 247 +#define R_SH_IMM_MEDLOW16 248 +#define R_SH_IMM_MEDLOW16_PCREL 249 + /* Keep this the last entry. */ #define R_SH_NUM 256 |