diff options
author | Nick Clifton <nickc@redhat.com> | 2011-10-05 14:13:24 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2011-10-05 14:13:24 +0000 |
commit | b7bfdfcc729e11b745f1884926b616a4dd95f60c (patch) | |
tree | 2a18a32ae5a527ed0f64bb6d99fa0403d62b98d1 /binutils/readelf.c | |
parent | 33977ea14d6571313dc312ea3eb7c3412a4564dc (diff) | |
download | binutils-redhat-b7bfdfcc729e11b745f1884926b616a4dd95f60c.tar.gz |
* 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 'binutils/readelf.c')
-rw-r--r-- | binutils/readelf.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c index 61064ca2b7..d68cf270b4 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -2595,14 +2595,19 @@ get_machine_flags (unsigned e_flags, unsigned e_machine) strcat (buf, ", 64-bit doubles"); if (e_flags & E_FLAG_RX_DSP) strcat (buf, ", dsp"); + if (e_flags & E_FLAG_RX_PID) + strcat (buf, ", pid"); + break; case EM_S390: if (e_flags & EF_S390_HIGH_GPRS) strcat (buf, ", highgprs"); + break; case EM_TI_C6000: if ((e_flags & EF_C6000_REL)) strcat (buf, ", relocatable module"); + break; } } |