Skip to content

Commit 17a0d65

Browse files
committed
tools/mpy_ld.py: Support GOT entries that reference inside mp_fun_table.
Signed-off-by: Damien George <damien@micropython.org>
1 parent ee9feac commit 17a0d65

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tools/mpy_ld.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -434,6 +434,8 @@ def populate_got(env):
434434
dest = got_entry.name
435435
elif got_entry.name.startswith("mp_fun_table+0x"):
436436
dest = int(got_entry.name.split("+")[1], 16) // env.arch.word_size
437+
elif got_entry.sec_name == ".external.mp_fun_table":
438+
dest = got_entry.sym.mp_fun_table_offset
437439
elif got_entry.sec_name.startswith(".text"):
438440
dest = ".text"
439441
elif got_entry.sec_name.startswith(".rodata"):

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy