This is the mail archive of the libffi-discuss@sourceware.org mailing list for the libffi project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: libffi is broken for x32


On 01/12/2015 03:46 PM, H.J. Lu wrote:
> On Mon, Jan 12, 2015 at 2:42 PM, H.J. Lu <hjl.tools@gmail.com> wrote:
>> This libffi commit:
>>
>> 13e2d7b92557a9511a0414df82bf2df3edc55cba is the first bad commit
>> commit 13e2d7b92557a9511a0414df82bf2df3edc55cba
>> Author: Anthony Green <green@moxielogic.com>
>> Date:   Thu Jan 10 10:52:02 2013 -0500
>>
>>     Handle both 32 and 64-bit x86 builds regardless of target triple
>>
>> breaks x32.
>>
> 
> This patch passed "make check" in libffi on x32.  I am testing
> it in GCC now.
> 
> GCC is configured as x86_64-unknown-linux-gnu with x32
> enabled.  libffi should set TARGET to X86_64 if __x86_64__
> is defined.

I thought the target for that was x86_64-*-linux-gnux32?

There's not usually an x32 multilib for "plain" 64-bit, so
I wonder how you're configuring?


r~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]