* readelf.c (get_machine_dlags): Add support for RX's PID mode.
authorNick Clifton <nickc@redhat.com>
Wed, 5 Oct 2011 14:13:31 +0000 (14:13 +0000)
committerNick Clifton <nickc@redhat.com>
Wed, 5 Oct 2011 14:13:31 +0000 (14:13 +0000)
commitd4cb0ea0caf03bea93ae6891017bb2301facb33f
treecf3cb39ee841888cd026e0063f36241cc514fefb
parentb1c8db38fceb8464f02f1673b52c926c56203593
* 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.
14 files changed:
bfd/ChangeLog
bfd/elf32-rx.c
binutils/ChangeLog
binutils/readelf.c
binutils/testsuite/binutils-all/objdump.exp
gas/ChangeLog
gas/config/rx-defs.h
gas/config/rx-parse.y
gas/config/tc-rx.c
gas/doc/c-rx.texi
include/elf/ChangeLog
include/elf/rx.h
ld/testsuite/ChangeLog
ld/testsuite/ld-scripts/phdrs.exp