This is an archive of the discontinued LLVM Phabricator instance.

[WebAssembly] Fix expected contents of relocations with addends
ClosedPublic

Authored by sbc100 on Mar 13 2018, 4:38 PM.

Details

Summary

This fixes issues found on the wasm waterfall related to relocations
with addends. Undefined symbols, even those with addends should
always have a provisional value of zero. At least this is what llvm
emits for wasm today (and I believe this is true for ELF too).

Diff Detail

Repository
rL LLVM

Event Timeline

sbc100 created this revision.Mar 13 2018, 4:38 PM
sbc100 added a reviewer: ruiu.Mar 13 2018, 4:41 PM
sbc100 updated this revision to Diff 138279.Mar 13 2018, 5:05 PM
  • add test
sbc100 added a reviewer: ncw.Mar 13 2018, 5:10 PM
sbc100 edited the summary of this revision. (Show Details)Mar 13 2018, 5:12 PM
dschuff accepted this revision.Mar 13 2018, 5:50 PM

LGTM, and confirmed that it makes libcxx configure successfully.

This revision is now accepted and ready to land.Mar 13 2018, 5:50 PM
This revision was automatically updated to reflect the committed changes.
ncw added a comment.Mar 14 2018, 6:38 AM

Looks good, well caught