[patch]: Patch for wince

Kai Tietz ktietz70@googlemail.com
Sat Jan 3 12:23:00 GMT 2009


2009/1/3 Kai Tietz <ktietz70@googlemail.com>:
> Hi Richard,
>
> 2009/1/3 Richard Earnshaw <richard.earnshaw@buzzard.freeserve.co.uk>:
>> On Sat, 2009-01-03 at 08:59 +0100, Kai Tietz wrote:
>>>       * windres.c (set_endianess): Get architecture name
>>>       for triplets like "pe-arm-wince-little".
>>
>> pe-arm-wince-little isn't a triplet.  It's a quadruplet (three hyphens).
>>
>> In general these are a bad idea, so where has this come from?
>>
>> Also, I think ARM targets should start with ARM, not some other
>> component, so that generic matchers for arm*-*-* will correctly detect
>> these targets.
>>
>> R.
>>
>>
>
> Be aware, that this isn't a configure triplet (or better quadruplet).
> This comes from internal bfd target specifiers.
> The origin of this is from gccce (mingwce).
> But by verifying this, I see that at least for name "x86-64" a special
> treating is necessary here.
>
> Cheers,
> Kai
>
> --
> |  (\_/) This is Bunny. Copy and paste
> | (='.'=) Bunny into your signature to help
> | (")_(") him gain world domination
>

Hi,

I altered this patch in way to handle still internal target names,
like pe-x86-64, ...
So I search for the architecture name in internal target names from
right to left.

2009-01-03  Kai Tietz  <kai.tietz@onevision.com>

       * windres.c (set_endianess): Get architecture name
       for internal target names like "pe-arm-wince-little".
       (find_arch_match): New helper.

Is this patch ok for apply?

Cheers,
Kai
-- 
|  (\_/) This is Bunny. Copy and paste
| (='.'=) Bunny into your signature to help
| (")_(") him gain world domination
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wince_windres.diff
Type: text/x-c
Size: 1705 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20090103/7e8eb5a2/attachment.bin>


More information about the Binutils mailing list