aboutsummaryrefslogtreecommitdiff
path: root/py/bc.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2019-10-06 23:29:40 +1100
committerDamien George <damien.p.george@gmail.com>2019-12-12 20:15:28 +1100
commitb47e155bd07e5765b804c404411825b15378c0b6 (patch)
tree48e7c57050d5164e5482c5d9b1b2c2e921729031 /py/bc.h
parentb310930dba3a35dbe4d790f461caf27d78b4c7b9 (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/bc.h')
-rw-r--r--py/bc.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/py/bc.h b/py/bc.h
index fd52571fd..a96d17a0d 100644
--- a/py/bc.h
+++ b/py/bc.h
@@ -74,7 +74,7 @@
#define MP_BC_PRELUDE_SIG_ENCODE(S, E, scope, out_byte, out_env) \
do { \
/*// Get values to store in prelude */ \
- size_t F = scope->scope_flags & 0x0f; /* only need to store lower 4 flag bits */ \
+ size_t F = scope->scope_flags & MP_SCOPE_FLAG_ALL_SIG; \
size_t A = scope->num_pos_args; \
size_t K = scope->num_kwonly_args; \
size_t D = scope->num_def_pos_args; \