diff options
| author | Damien George <damien.p.george@gmail.com> | 2019-10-06 23:29:40 +1100 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2019-12-12 20:15:28 +1100 |
| commit | b47e155bd07e5765b804c404411825b15378c0b6 (patch) | |
| tree | 48e7c57050d5164e5482c5d9b1b2c2e921729031 /py/asmbase.h | |
| parent | b310930dba3a35dbe4d790f461caf27d78b4c7b9 (diff) | |
py/persistentcode: Add ability to relocate loaded native code.
Implements text, rodata and bss generalised relocations, as well as generic
qstr-object linking. This allows importing dynamic native modules on all
supported architectures in a unified way.
Diffstat (limited to 'py/asmbase.h')
| -rw-r--r-- | py/asmbase.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/py/asmbase.h b/py/asmbase.h index d2b403893..b5e259358 100644 --- a/py/asmbase.h +++ b/py/asmbase.h @@ -60,7 +60,7 @@ static inline size_t mp_asm_base_get_code_size(mp_asm_base_t *as) { static inline void *mp_asm_base_get_code(mp_asm_base_t *as) { #if defined(MP_PLAT_COMMIT_EXEC) - return MP_PLAT_COMMIT_EXEC(as->code_base, as->code_size); + return MP_PLAT_COMMIT_EXEC(as->code_base, as->code_size, NULL); #else return as->code_base; #endif |
