This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [Mach-O, committed]: Add definition for arm64 cpu
- From: Tristan Gingold <gingold at adacore dot com>
- To: Richard Earnshaw <rearnsha at arm dot com>
- Cc: Marcus Shawcroft <marcus dot shawcroft at gmail dot com>, "binutils at sourceware dot org Development" <binutils at sourceware dot org>
- Date: Thu, 27 Mar 2014 09:17:59 +0100
- Subject: Re: [Mach-O, committed]: Add definition for arm64 cpu
- Authentication-results: sourceware.org; auth=none
- References: <470024C4-4E3C-43BD-A80B-BBD0EC8B8392 at adacore dot com> <5332FF52 dot 7010402 at arm dot com> <6DBF330F-D3D1-48FD-B9D4-7595E5583DDC at adacore dot com> <CAFqB+PyAoAyFwwU9qj5uGKfSHLUA-peH+XFX=599ff4nDRYePQ at mail dot gmail dot com> <53330500 dot 60906 at arm dot com>
On 26 Mar 2014, at 17:49, Richard Earnshaw <rearnsha@arm.com> wrote:
> On 26/03/14 16:43, Marcus Shawcroft wrote:
>> On 26 March 2014 16:34, Tristan Gingold <gingold@adacore.com> wrote:
>>
>>> In fact it is consistent with the macro name defined by Apple :-(
>>> Hard to be consistent with two non-consistent usages.
>>
>> That justification does not hold for the name string in bfd_mach_o_cpu_name[].
>>
>> /Marcus
>>
>
> Nor does it hold for the internal names, eg BFD_MACH_O_CPU_TYPE_ARM64
This is not an internal name, but was derived from an Apple header file. Compare
the definition of bfd_mach_o_cpu_type with:
...
#define CPU_TYPE_MC98000 ((cpu_type_t) 10)
#define CPU_TYPE_HPPA ((cpu_type_t) 11)
#define CPU_TYPE_ARM ((cpu_type_t) 12)
#define CPU_TYPE_ARM64 (CPU_TYPE_ARM | CPU_ARCH_ABI64)
#define CPU_TYPE_MC88000 ((cpu_type_t) 13)
#define CPU_TYPE_SPARC ((cpu_type_t) 14)
#define CPU_TYPE_I860 ((cpu_type_t) 15)
/* skip CPU_TYPE_ALPHA ((cpu_type_t) 16) */
/* skip ((cpu_type_t) 17) */
#define CPU_TYPE_POWERPC ((cpu_type_t) 18)
...
I added BFD_MACH_O_ prefix as a namespace.
Tristan.