diff options
author | Yoshinori Sato <ysato@users.sourceforge.jp> | 2018-11-07 17:16:56 +0900 |
---|---|---|
committer | Yoshinori Sato <ysato@users.sourceforge.jp> | 2018-11-07 17:18:05 +0900 |
commit | 8d3c78e473c2af54c8117808f2459a408f9f6327 (patch) | |
tree | a357bad217bc2fa52efc23af3fc5b23ac139df26 /bfd/elf32-rx.c | |
parent | 8f531a8d1f9b9b9061368ddd89d1b7e7aafe9e38 (diff) | |
download | binutils-gdb-8d3c78e473c2af54c8117808f2459a408f9f6327.tar.gz |
rx: Add target rx-*-linux.
Diffstat (limited to 'bfd/elf32-rx.c')
-rw-r--r-- | bfd/elf32-rx.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/bfd/elf32-rx.c b/bfd/elf32-rx.c index 1f70b97a345..ddcf5e980fa 100644 --- a/bfd/elf32-rx.c +++ b/bfd/elf32-rx.c @@ -3310,6 +3310,14 @@ rx_elf_object_p (bfd * abfd) return TRUE; } + +static bfd_boolean +rx_linux_object_p (bfd * abfd) +{ + bfd_default_set_arch_mach (abfd, bfd_arch_rx, + elf32_rx_machine (abfd)); + return TRUE; +} #ifdef DEBUG @@ -4059,3 +4067,18 @@ rx_additional_link_map_text (bfd *obfd, struct bfd_link_info *info, FILE *mapfil #define elf32_bed elf32_rx_be_ns_bed #include "elf32-target.h" + +#undef TARGET_LITTLE_SYM +#define TARGET_LITTLE_SYM rx_elf32_linux_le_vec +#undef TARGET_LITTLE_NAME +#define TARGET_LITTLE_NAME "elf32-rx-linux" +#undef TARGET_BIG_SYM +#undef TARGET_BIG_NAME + +#undef elf_backend_object_p +#define elf_backend_object_p rx_linux_object_p +#undef elf_symbol_leading_char +#undef elf32_bed +#define elf32_bed elf32_rx_le_linux_bed + +#include "elf32-target.h" |