From: Jarkko Hietaniemi <jhi@iki.fi>
To: libffi-discuss@sourceware.org
Subject: Re: src/alpha/ffitarget.h - FFI_TRAMPOLINE_SIZE
Date: Thu, 16 Apr 2015 10:58:00 -0000 [thread overview]
Message-ID: <552F95C2.3080103@iki.fi> (raw)
In-Reply-To: <mgn9sa$lom$1@ger.gmane.org>
On Wednesday-201504-15 23:20, John E. Malmberg wrote:
> tramp = (unsigned int *) &closure->tramp[0];
> ....
>
> *(void **) &tramp[4] = ffi_closure_osf;
>
> But tramp only has 3 longword members per the previous declaration, so
> &tramp[4] is the address of the '*cif' member of the structure which is
> then updated:
unsigned int is four bytes in alpha. (LP64, not ILP64).
So writing an 8-byte ptr at int offset 4 or byte offset 16
will update the bytes 16 to 23. Verified in an alpha, and
for that matter in an x86_64, which is LP64, too.
prev parent reply other threads:[~2015-04-16 10:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-16 3:22 John E. Malmberg
2015-04-16 10:58 ` Jarkko Hietaniemi [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=552F95C2.3080103@iki.fi \
--to=jhi@iki.fi \
--cc=libffi-discuss@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).