Created attachment 3931 [details] Failing test + assertion The attached patch currently fails because the JIT tries to compile the available_externally function instead of dlsym'ing the existing definition.
Created attachment 3948 [details] Proposed fix
Fixed by r91626.
I reverted part of this fix in r91943 because it broke VMKit. Lazy-loaded available_externally functions are broken again.
Created attachment 3971 [details] Test for ghost available_externally functions
Fixed in r94686.