diff options
author | walt <walt> | 2012-02-25 18:57:53 +0000 |
---|---|---|
committer | walt <walt> | 2012-02-25 18:57:53 +0000 |
commit | 509bc81b5ced831dab21df39f99305d5f100d0a4 (patch) | |
tree | d37725859e0ddc8f55602783057c3f3e61c5d5ee /bfd | |
parent | 78e4df93799a947ab0e846948c92369ecbee0f2d (diff) | |
download | gdb-509bc81b5ced831dab21df39f99305d5f100d0a4.tar.gz |
Properly create and use a bfd_arch_info_type for 32-bit tilegx.
bfd/
* arctures.c (bfd_architecture): Define bfd_mach_tilegx32.
* bfd-in2.h: Regenerate.
* cpu-tilegx.c (bfd_tilegx32_arch): define.
(bfd_tilegx_arch): link to bfd_tilegx32_arch.
gas/
* tc-tilegx.c (md_begin): set architecture and machine.
Diffstat (limited to 'bfd')
-rw-r--r-- | bfd/ChangeLog | 7 | ||||
-rw-r--r-- | bfd/archures.c | 1 | ||||
-rw-r--r-- | bfd/bfd-in2.h | 1 | ||||
-rw-r--r-- | bfd/cpu-tilegx.c | 19 |
4 files changed, 27 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index cf9bf17b323..2568c32b0d1 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,10 @@ +2012-02-25 Walter Lee <walt@tilera.com> + + * arctures.c (bfd_architecture): Define bfd_mach_tilegx32. + * bfd-in2.h: Regenerate. + * cpu-tilegx.c (bfd_tilegx32_arch): define. + (bfd_tilegx_arch): link to bfd_tilegx32_arch. + 2012-02-24 Nick Clifton <nickc@redhat.com> PR ld/13730 diff --git a/bfd/archures.c b/bfd/archures.c index c833cbfec66..92c4867af51 100644 --- a/bfd/archures.c +++ b/bfd/archures.c @@ -453,6 +453,7 @@ DESCRIPTION . bfd_arch_tilegx, {* Tilera TILE-Gx *} .#define bfd_mach_tilepro 1 .#define bfd_mach_tilegx 1 +.#define bfd_mach_tilegx32 2 . bfd_arch_last . }; */ diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h index fb563374d33..4a92e47ef91 100644 --- a/bfd/bfd-in2.h +++ b/bfd/bfd-in2.h @@ -2159,6 +2159,7 @@ enum bfd_architecture bfd_arch_tilegx, /* Tilera TILE-Gx */ #define bfd_mach_tilepro 1 #define bfd_mach_tilegx 1 +#define bfd_mach_tilegx32 2 bfd_arch_last }; diff --git a/bfd/cpu-tilegx.c b/bfd/cpu-tilegx.c index dc9bc63cd4d..f98cb0c4675 100644 --- a/bfd/cpu-tilegx.c +++ b/bfd/cpu-tilegx.c @@ -22,6 +22,23 @@ #include "sysdep.h" #include "libbfd.h" +const bfd_arch_info_type bfd_tilegx32_arch = + { + 32, /* 32 bits in a word */ + 32, /* 32 bits in an address */ + 8, /* 8 bits in a byte */ + bfd_arch_tilegx, + bfd_mach_tilegx32, + "tilegx32", + "tilegx32", + 3, + FALSE, + bfd_default_compatible, + bfd_default_scan, + bfd_arch_default_fill, + 0, + }; + const bfd_arch_info_type bfd_tilegx_arch = { 64, /* 64 bits in a word */ @@ -36,5 +53,5 @@ const bfd_arch_info_type bfd_tilegx_arch = bfd_default_compatible, bfd_default_scan, bfd_arch_default_fill, - 0, + &bfd_tilegx32_arch, }; |