diff options
author | Nick Clifton <nickc@redhat.com> | 2011-10-05 14:13:29 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2011-10-05 14:13:29 +0000 |
commit | e402890df25a0ed1047e24e70830489c17d20895 (patch) | |
tree | 18e979a62ffd96405e4384dbf5a0bf1ce5217521 /include/elf/rx.h | |
parent | 8dfce03bfaae529e872ddfa39b5879ae6a9fdf06 (diff) | |
download | newlib-e402890df25a0ed1047e24e70830489c17d20895.zip newlib-e402890df25a0ed1047e24e70830489c17d20895.tar.gz newlib-e402890df25a0ed1047e24e70830489c17d20895.tar.bz2 |
* readelf.c (get_machine_dlags): Add support for RX's PID mode.
* ld-scripts/phdrs.exp: Expect to fail for the RX.
* elf32-rx.c: Add support for PID mode.
(rx_elf_relocate_section): Add checks for unsafe PID relocations.
Include addend in R_RX_SYM relocations.
* config/rx-defs.h (rx_pid_register): New.
(rx_gp_register): New.
* config/rx-parse.y (rx_lex): Add support for %gpreg and %pidreg.
(displacement): Add PID support.
* config/tc-rx.c (rx_pid_mode): New.
(rx_num_int_regs): New.
(rx_pid_register): New.
(rx_gp_register): New.
(options): Add -mpid and -mint-register= options.
(md_longopts): Likewise.
(md_parse_option): Likewise.
(md_show_usage): Likewise.
(rx_pid_symbol): New.
(rx_pidreg_symbol): New.
(rx_gpreg_symbol): New.
(md_begin): Support PID.
(rx_validate_fix_sub): Support PID.
(tc_gen_reloc): Support PID.
* doc/c-rx.texi: Document PID support.
* rx.h (E_FLAG_RX_PID): New.
Diffstat (limited to 'include/elf/rx.h')
-rw-r--r-- | include/elf/rx.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/elf/rx.h b/include/elf/rx.h index e8794f3..baaa1aa 100644 --- a/include/elf/rx.h +++ b/include/elf/rx.h @@ -116,7 +116,8 @@ END_RELOC_NUMBERS (R_RX_max) /* Values for the e_flags field in the ELF header. */ #define E_FLAG_RX_64BIT_DOUBLES (1 << 0) -#define E_FLAG_RX_DSP (1 << 1) /* Defined in the RX CPU Object file specification, but not explained. */ +#define E_FLAG_RX_DSP (1 << 1) /* Defined in the RX CPU Object file specification, but not explained. */ +#define E_FLAG_RX_PID (1 << 2) /* Unofficial - DJ */ /* These define the addend field of R_RX_RH_RELAX relocations. */ #define RX_RELAXA_IMM6 0x00000010 /* Imm8/16/24/32 at bit offset 6. */ |