diff options
author | Florian Weimer <fw@deneb.enyo.de> | 2019-02-19 12:55:11 +0100 |
---|---|---|
committer | Anthony Green <green@moxielogic.com> | 2019-02-19 06:55:11 -0500 |
commit | 44a6c28545186d78642487927952844156fc7ab5 (patch) | |
tree | 428b32c0a035c845acbd347c189f255424e07fd8 /include | |
parent | 042ef8c314a946ef1cd58c6e10cd74e403ef5bf9 (diff) | |
download | libffi-44a6c28545186d78642487927952844156fc7ab5.tar.gz |
aarch64: Flush code mapping in addition to data mapping (#471)
This needs a new function, ffi_data_to_code_pointer, to translate
from data pointers to code pointers.
Fixes issue #470.
Diffstat (limited to 'include')
-rw-r--r-- | include/ffi_common.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/ffi_common.h b/include/ffi_common.h index ee9cdcb..76b9dd6 100644 --- a/include/ffi_common.h +++ b/include/ffi_common.h @@ -99,6 +99,10 @@ ffi_status ffi_prep_cif_core(ffi_cif *cif, ffi_type *rtype, ffi_type **atypes); +/* Translate a data pointer to a code pointer. Needed for closures on + some targets. */ +void *ffi_data_to_code_pointer (void *data) FFI_HIDDEN; + /* Extended cif, used in callback from assembly routine */ typedef struct { |