/* Renesas RX specific support for 32-bit ELF.
- Copyright (C) 2008-2018 Free Software Foundation, Inc.
+ Copyright (C) 2008-2019 Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
For now we assume that the flags are OK. */
if ((elf_elfheader (abfd)->e_flags & EF_RX_CPU_MASK) == EF_RX_CPU_RX)
#endif
- return bfd_mach_rx;
+ if ((elf_elfheader (abfd)->e_flags & E_FLAG_RX_V2))
+ return bfd_mach_rx_v2;
+ else if ((elf_elfheader (abfd)->e_flags & E_FLAG_RX_V3))
+ return bfd_mach_rx_v3;
+ else
+ return bfd_mach_rx;
return 0;
}
static bfd_boolean
rx_linux_object_p (bfd * abfd)
{
- bfd_default_set_arch_mach (abfd, bfd_arch_rx,
- elf32_rx_machine (abfd));
+ bfd_default_set_arch_mach (abfd, bfd_arch_rx, elf32_rx_machine (abfd));
return TRUE;
}
\f
#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
+#define elf32_bed elf32_rx_le_linux_bed
#include "elf32-target.h"