修訂 | b7074ad5b44c7974a8b719b7a964b76f921d018b (tree) |
---|---|
時間 | 2015-12-17 02:53:38 |
作者 | Yoshinori Sato <ysato@user...> |
Commiter | Yoshinori Sato |
Add bfd_mach_rx_v2
@@ -445,6 +445,7 @@ DESCRIPTION | ||
445 | 445 | .#define bfd_mach_rl78 0x75 |
446 | 446 | . bfd_arch_rx, {* Renesas RX. *} |
447 | 447 | .#define bfd_mach_rx 0x75 |
448 | +.#define bfd_mach_rx_v2 0x76 | |
448 | 449 | . bfd_arch_s390, {* IBM s390 *} |
449 | 450 | .#define bfd_mach_s390_31 31 |
450 | 451 | .#define bfd_mach_s390_64 64 |
@@ -2257,6 +2257,7 @@ enum bfd_architecture | ||
2257 | 2257 | #define bfd_mach_rl78 0x75 |
2258 | 2258 | bfd_arch_rx, /* Renesas RX. */ |
2259 | 2259 | #define bfd_mach_rx 0x75 |
2260 | +#define bfd_mach_rx_v2 0x76 | |
2260 | 2261 | bfd_arch_s390, /* IBM s390 */ |
2261 | 2262 | #define bfd_mach_s390_31 31 |
2262 | 2263 | #define bfd_mach_s390_64 64 |
@@ -37,6 +37,21 @@ static const bfd_arch_info_type arch_info_struct[] = | ||
37 | 37 | bfd_default_compatible, /* Architecture comparison fn. */ |
38 | 38 | bfd_default_scan, /* String to architecture convert fn. */ |
39 | 39 | bfd_arch_default_fill, /* Default fill. */ |
40 | + &arch_info_struct[1] /* Next in list. */ | |
41 | + }, | |
42 | + { | |
43 | + 32, /* Bits per word. */ | |
44 | + 32, /* Bits per address. */ | |
45 | + 8, /* Bits per byte. */ | |
46 | + bfd_arch_rx, /* Architecture. */ | |
47 | + bfd_mach_rx_v2, /* Machine. */ | |
48 | + "rx:v2", /* Architecture name. */ | |
49 | + "rx:v2", /* Printable name. */ | |
50 | + 3, /* Section align power. */ | |
51 | + FALSE, /* The default ? */ | |
52 | + bfd_default_compatible, /* Architecture comparison fn. */ | |
53 | + bfd_default_scan, /* String to architecture convert fn. */ | |
54 | + bfd_arch_default_fill, /* Default fill. */ | |
40 | 55 | NULL /* Next in list. */ |
41 | 56 | }, |
42 | 57 | }; |
@@ -3183,6 +3183,9 @@ elf32_rx_machine (bfd * abfd ATTRIBUTE_UNUSED) | ||
3183 | 3183 | For now we assume that the flags are OK. */ |
3184 | 3184 | if ((elf_elfheader (abfd)->e_flags & EF_RX_CPU_MASK) == EF_RX_CPU_RX) |
3185 | 3185 | #endif |
3186 | + if ((elf_elfheader (abfd)->e_flags & E_FLAG_RX_V2)) | |
3187 | + return bfd_mach_rx_v2; | |
3188 | + else | |
3186 | 3189 | return bfd_mach_rx; |
3187 | 3190 | |
3188 | 3191 | return 0; |