This is an archive of the discontinued LLVM Phabricator instance.

[lld][ELF] Dynamic library support
ClosedPublic

Authored by shankarke on Mar 28 2013, 9:33 AM.

Details

Reviewers
Bigcheese
Summary

This patch adds the below functionalities :-

  • Adds required hash section
  • Adds changes to Hexagon got and .got.plt sections

This also makes shared libraries work with Hexagon for object files containing PLT/GOTOFF/GOTPCREL relocations.

Diff Detail

Event Timeline

Bigcheese accepted this revision.Mar 28 2013, 4:54 PM
Bigcheese added inline comments.
lib/ReaderWriter/ELF/SectionChunks.h
634

doSort, or just sort.

836

When does this ever happen?

shankarke added inline comments.Mar 28 2013, 5:41 PM
lib/ReaderWriter/ELF/SectionChunks.h
634

Will make the change.

836

For the first undefined symbol.

Bigcheese added inline comments.Mar 28 2013, 5:57 PM
lib/ReaderWriter/ELF/SectionChunks.h
836

But undefined symbols shouldn't be in the hash table.

shankarke added inline comments.Mar 28 2013, 6:27 PM
lib/ReaderWriter/ELF/SectionChunks.h
836

The hash table(chains array) contains an entry for every entry in the dynamic symbol table.

Eugene.Zelenko closed this revision.Oct 5 2016, 3:21 PM
Eugene.Zelenko added a subscriber: Eugene.Zelenko.

Committed in rL178323.