emscripten-core / emscripten-fastcomp

LLVM plus Emscripten's asm.js backend
Other
182 stars 111 forks source link

When building relocatable code lookup function addresses dynamically via `fp$foo` functions #259

Closed sbc100 closed 5 years ago

sbc100 commented 5 years ago

This means that the dynamic linker then assigned function pointers and both main module and side module use fp$foo accessors to lookup function addresses, just like they do for global addresses.

This allows the test_dylink_function_pointer_equality test in emscripten to pass.

See https://github.com/emscripten-core/emscripten/issues/8268.