This is an archive of the discontinued LLVM Phabricator instance.

[WebAssembly] Fix symbol type for addresses of external functions
ClosedPublic

Authored by sbc100 on Jun 9 2017, 3:51 PM.

Details

Summary

These symbols were previously not being marked as functions
so were apprering as globals instead, and with the incorrect
relocation type.

Without this fix, objects that take address of external
functions include them as global imports rather than function
imports which then fails at link time.

Diff Detail

Repository
rL LLVM

Event Timeline

sbc100 created this revision.Jun 9 2017, 3:51 PM
sbc100 added a reviewer: jgravelle-google.
sunfish accepted this revision.Jun 12 2017, 4:13 PM

LGTM

This revision is now accepted and ready to land.Jun 12 2017, 4:13 PM
This revision was automatically updated to reflect the committed changes.