This is an archive of the discontinued LLVM Phabricator instance.

Allow undefined symbols in shared library by default
ClosedPublic

Authored by emaste on Apr 8 2015, 11:43 AM.

Details

Summary

Change from D8886 with updated testcase.

(LLVM phabricator is not set to allow reopening a review, it seems.)

Diff Detail

Event Timeline

emaste updated this revision to Diff 23432.Apr 8 2015, 11:43 AM
emaste retitled this revision from to Allow undefined symbols in shared library by default.
emaste updated this object.
emaste edited the test plan for this revision. (Show Details)
emaste added subscribers: joerg, Unknown Object (MLST).
rafael edited edge metadata.Apr 8 2015, 4:16 PM

Fine by me, but someone from the lld side should LGTM it

From the discussion on the list, there seem to be two consistent ways to handle this

  • Say that a .so's dependency is the job of the dynamic linker (this patch new default and what gold does) (this is by far my preference).
  • Fully implement what a dynamic linker does. In particular, resolve a symbol from a executable to an indirect dependency. This is *not* done by gold or bfd ld.
davide accepted this revision.Apr 9 2015, 6:43 PM
davide edited edge metadata.
This revision is now accepted and ready to land.Apr 9 2015, 6:43 PM
davide closed this revision.Apr 9 2015, 6:43 PM