Messages in this thread | | | Date | Thu, 12 Jun 2014 12:11:36 -0700 | From | "H. Peter Anvin" <> | Subject | Re: Segmentation fault on all golang executables |
| |
On 06/12/2014 11:51 AM, Andy Lutomirski wrote: > On Thu, Jun 12, 2014 at 11:48 AM, H. Peter Anvin <hpa@linux.intel.com> wrote: >> On 06/12/2014 11:42 AM, Andy Lutomirski wrote: >>> >>> Note that my hack will build a buggy vdso on big-endian hosts. Is >>> there a way to convert host -> BE yet? >>> >> >> Yes, use <tools/be_byteshift.h>. > > What should I rebase on for that? And wasn't there some header that > was supposed to choose the right include file given the host runtime? > > Also, I meant host -> LE, of course, but that should be trivial. >
No need to rebase. My patchset proposes replacing <tools/be_byteshift.h> and <tools/le_byteshift.h> by a unified <tools/unaligned.h> but that is not important for this purpose.
host -> LE uses <tools/le_byteshift.h> which is already in use by vdso2c. Use put_unaligned_leXX().
-hpa
| |