[PATCH] set mpi limb for all amd64 targets
vapier at gentoo.org
Sat Sep 15 02:30:13 CEST 2012
On Fri, Sep 14, 2012 at 8:32 AM, Werner Koch <wk at gnupg.org> wrote:
> On Wed, 12 Sep 2012 03:44, vapier at gentoo.org said:
>> The new x32 ABI has sizeof(unsigned long) == 4 which causes random
>> crashes. Add an explicit setting for all amd64 targets so things
>> work nicely.
> I recall that this x32 ABI is contested.
no idea what you mean. all the mainline toolchain packages support it
now as does the kernel.
> The proposed patch changes a
> fundamental internal type (unsigned long to uint64_t) without setting up
> a new ABI in mpi/config.links. It looks harmless but it is a workaround
> for a bug which seems to be a more fundamental problem.
i'm not familiar with the gcrypt build system. both the x64_64 ABI
and the x32 ABI can natively handle uint64_t in a single register i.e.
there's no overhead. sizeof(unsigned long) on x32 is 4 though while
on x86_64 it is 8.
> What is the CPU-OS-VENDOR string you are using?
it doesn't have a unique one: x86_64-linux-gnu
More information about the Gcrypt-devel