Commit 17a0d65e authored by Damien George's avatar Damien George

tools/mpy_ld.py: Support GOT entries that reference inside mp_fun_table.

Signed-off-by: default avatarDamien George <damien@micropython.org>
parent ee9feacc
......@@ -434,6 +434,8 @@ def populate_got(env):
dest = got_entry.name
elif got_entry.name.startswith("mp_fun_table+0x"):
dest = int(got_entry.name.split("+")[1], 16) // env.arch.word_size
elif got_entry.sec_name == ".external.mp_fun_table":
dest = got_entry.sym.mp_fun_table_offset
elif got_entry.sec_name.startswith(".text"):
dest = ".text"
elif got_entry.sec_name.startswith(".rodata"):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment