summaryrefslogtreecommitdiff
path: root/docs/esp32/tutorial/peripheral_access.rst
diff options
context:
space:
mode:
authorAngus Gratton <angus@redyak.com.au>2024-12-03 10:02:46 +1100
committerDamien George <damien@micropython.org>2024-12-10 11:11:31 +1100
commitb20687d0e71360bf76eccedbb9d2c1f73697693a (patch)
tree4e92e3da63b7d22eed204df64b95e742c31829c7 /docs/esp32/tutorial/peripheral_access.rst
parent2bee8e1b8cdaae0ac387c03e88a573e35256b092 (diff)
esp32: Fix link failure due to link library order.
When a wrapped symbol is provided in its own file, it's possible for the linker to skip that file entirely and not return to it depending on the order of libraries passed on the linker command line. This is because these wrapped symbols create linker cycles (libmain_espXX depends on liblwip but liblwip now also depends on libmain for the wrapped functions in lwip_patch.c, for example.) Linker failure for symbols in lwip_patch.c was reproducible if mDNS was disabled in the board configuration. This commit adds an explicit undefined symbol for each file, to ensure the linker will add the wrapped objects on its first pass. This work was funded through GitHub Sponsors. Signed-off-by: Angus Gratton <angus@redyak.com.au>
Diffstat (limited to 'docs/esp32/tutorial/peripheral_access.rst')
0 files changed, 0 insertions, 0 deletions