Warning
This post was published 48 days ago. The information described in this article may have changed.
If linker tricks donโt work across dylibs, how do function pointers works accross dylibs?
โ Rust ๐ 2025-06-25 ๐ค surdeus ๐๏ธ 6From the internal forum
I thought that address of function were guaranteed to be unique, including when dynamically loading a library. I thought that the runtime dynamic linker would relocate all the address of the functions of the dynamically loaded library and all call to those functions.
If linker tricks do not work across dylibs, how function pointer can work if the points to a function that is dynamically loaded from another module?
EDIT: @bjorn3 Iโm not sure you saw my question since Iโve changed to the user forum to not pollute the thread on internals
3 posts - 2 participants
๐ท๏ธ rust_feed