aboutsummaryrefslogtreecommitdiff
path: root/emlink.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-06-29 14:41:09 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-07-03 15:31:04 -0700
commit48edb13044459f1dbedd69aef24e8abed30b1db5 (patch)
tree97b26420e48d6cafef8e4f49c6beff62f3899f42 /emlink.py
parent8544ce1cc79e93b5110760fae046a8024249e53a (diff)
emit proper filler functions in merged function tables
Diffstat (limited to 'emlink.py')
-rw-r--r--emlink.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/emlink.py b/emlink.py
index a7ecb236..02d1fd89 100644
--- a/emlink.py
+++ b/emlink.py
@@ -280,7 +280,8 @@ class AsmModule():
ret = main + side
size = 2
while size < len(ret): size *= 2
- ret = ret + ['0']*(size - len(ret))
+ aborter = ret[1] # we can assume odd indexes have an aborting function with the right signature
+ ret = ret + [aborter]*(size - len(ret))
assert len(ret) == size
f_sizes[table] = size
return '[' + ','.join(ret) + ']'