x86 binutils fail on big-endian hosts

H.J. Lu hjl.tools@gmail.com
Wed Oct 19 14:54:00 GMT 2011


On Wed, Oct 19, 2011 at 3:41 AM, Alan Modra <amodra@gmail.com> wrote:
> On Wed, Oct 19, 2011 at 10:00:26AM +0200, Andreas Schwab wrote:
>> Alan Modra <amodra@gmail.com> writes:
>>
>> > @@ -1271,8 +1264,8 @@ elf_i386_check_tls_transition (bfd *abfd
>> >        if (offset + 2 <= sec->size)
>> >     {
>> >       /* Make sure that it's a call *x@tlsdesc(%rax).  */
>> > -     static i386_opcode16 call = { { 0xff, 0x10 } };
>> > -     return bfd_get_16 (abfd, contents + offset) == call.i;
>> > +     static unsigned char call[] = { 0xff, 0x10 };
>>
>> const?
>
> Good idea.  Changed in my local tree.  elf64-x86-64.c too.
>
> --
> Alan Modra
> Australia Development Lab, IBM
>

It's OK.  Thanks.

-- 
H.J.



More information about the Binutils mailing list