• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

修訂b7074ad5b44c7974a8b719b7a964b76f921d018b (tree)
時間2015-12-17 02:53:38
作者Yoshinori Sato <ysato@user...>
CommiterYoshinori Sato

Log Message

Add bfd_mach_rx_v2

Change Summary

差異

--- a/bfd/archures.c
+++ b/bfd/archures.c
@@ -445,6 +445,7 @@ DESCRIPTION
445445 .#define bfd_mach_rl78 0x75
446446 . bfd_arch_rx, {* Renesas RX. *}
447447 .#define bfd_mach_rx 0x75
448+.#define bfd_mach_rx_v2 0x76
448449 . bfd_arch_s390, {* IBM s390 *}
449450 .#define bfd_mach_s390_31 31
450451 .#define bfd_mach_s390_64 64
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -2257,6 +2257,7 @@ enum bfd_architecture
22572257 #define bfd_mach_rl78 0x75
22582258 bfd_arch_rx, /* Renesas RX. */
22592259 #define bfd_mach_rx 0x75
2260+#define bfd_mach_rx_v2 0x76
22602261 bfd_arch_s390, /* IBM s390 */
22612262 #define bfd_mach_s390_31 31
22622263 #define bfd_mach_s390_64 64
--- a/bfd/cpu-rx.c
+++ b/bfd/cpu-rx.c
@@ -37,6 +37,21 @@ static const bfd_arch_info_type arch_info_struct[] =
3737 bfd_default_compatible, /* Architecture comparison fn. */
3838 bfd_default_scan, /* String to architecture convert fn. */
3939 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. */
4055 NULL /* Next in list. */
4156 },
4257 };
--- a/bfd/elf32-rx.c
+++ b/bfd/elf32-rx.c
@@ -3183,6 +3183,9 @@ elf32_rx_machine (bfd * abfd ATTRIBUTE_UNUSED)
31833183 For now we assume that the flags are OK. */
31843184 if ((elf_elfheader (abfd)->e_flags & EF_RX_CPU_MASK) == EF_RX_CPU_RX)
31853185 #endif
3186+ if ((elf_elfheader (abfd)->e_flags & E_FLAG_RX_V2))
3187+ return bfd_mach_rx_v2;
3188+ else
31863189 return bfd_mach_rx;
31873190
31883191 return 0;