[linux-unicore] [Patch binutils/bfd] Add unicore32 arch and mach for enum bfd_architecture.

  • From: 刘智猷 <liuzhiyou.cs@xxxxxxxxx>
  • To: linux-unicore@xxxxxxxxxxxxx
  • Date: Thu, 13 Dec 2012 19:49:41 +0800

Hi all,

我开始着手移植bfd。 我在github上建立了一个repo,https://github.com/EasyHard/binutils,
下面是我的第一个patch。我不太确定这么发patch对不对,如果不合适,请告诉我~

刘智猷


commit 61ff1e39aa043fe146a9ea18c59e57b7832b8307
Author: EasyHard <liuzhiyou.cs@xxxxxxxxx>
Date:   Thu Dec 13 15:15:47 2012 +0800

    Add unicore32 arch and mach for enum bfd_architecture.

diff --git a/bfd/archures.c b/bfd/archures.c
index c4cefbc..36b1ff4 100644
--- a/bfd/archures.c
+++ b/bfd/archures.c
@@ -464,6 +464,8 @@ DESCRIPTION
 .#define bfd_mach_tilegx32  2
 .  bfd_arch_aarch64,   {* AArch64  *}
 .#define bfd_mach_aarch64 0
+.  bfd_arch_unicore32, {* Unicore32 *}
+.#define bfd_mach_unicore32
 .  bfd_arch_last
 .  };
 */

Other related posts: