This is an archive of the discontinued LLVM Phabricator instance.

Put undefined symbols from shared libraries in the symbol table
ClosedPublic

Authored by espindola on Feb 27 2018, 10:29 AM.

Details

Reviewers
ruiu
ikudrin
Summary

It looks like that with the recent fixes in behavior for undefined symbol in shared libraries they are more similar to regular undefined symbols than something else.

Diff Detail

Event Timeline

espindola created this revision.Feb 27 2018, 10:29 AM
ruiu accepted this revision.Feb 27 2018, 12:10 PM

LGTM

This change seems pretty good. I didn't notice that just adding undefined symbols simplifies things like this. Can we now implement --no-allow-shlib-undefined easily as well?

ELF/SymbolTable.cpp
297

My preference is to do this in InputFiles.cpp instead of in this file.

This revision is now accepted and ready to land.Feb 27 2018, 12:10 PM