This is an archive of the discontinued LLVM Phabricator instance.

ELF: Preserve MustBeInDynSym for bitcode symbols.
ClosedPublic

Authored by pcc on Apr 4 2016, 5:43 PM.

Details

Summary

Make sure to copy the MustBeInDynSym field when replacing shared symbols with
bitcode symbols, and when replacing bitcode symbols with regular symbols
in addCombinedLtoObject. Fixes interposition of DSO symbols with bitcode
symbols in the main executable.

Diff Detail

Repository
rL LLVM

Event Timeline

pcc updated this revision to Diff 52646.Apr 4 2016, 5:43 PM
pcc retitled this revision from to ELF: Preserve MustBeInDynSym for bitcode symbols..
pcc updated this object.
pcc added reviewers: ruiu, rafael.
pcc added a subscriber: llvm-commits.
davide accepted this revision.Apr 4 2016, 5:46 PM
davide added a reviewer: davide.
davide added a subscriber: davide.

I think this one is correct.

This revision is now accepted and ready to land.Apr 4 2016, 5:46 PM
This revision was automatically updated to reflect the committed changes.