This is an archive of the discontinued LLVM Phabricator instance.

[ELF] Convert RelocationSection to input section.
ClosedPublic

Authored by evgeny777 on Nov 15 2016, 7:06 AM.

Details

Summary

Other changes:

  • Implementation of OutputSection<ELFT>::finalize was refactored in order to work correctly with RelaPlt and RelaDyn input sections. This finalizer doesn't makes sense only when producing relocatable output. For non-relocatable links all it does is clearing SHF_LINK_ORDER flag.
  • Check of SyntheticSection was moved to the beginning of InputSection<ELFT>::writeTo, because output section containing RelaDyn or RelaPlt has type SHT_REL[A]

Diff Detail

Repository
rL LLVM

Event Timeline

evgeny777 updated this revision to Diff 77994.Nov 15 2016, 7:06 AM
evgeny777 retitled this revision from to [ELF] Convert RelocationSection to input section..
evgeny777 updated this object.
evgeny777 added reviewers: ruiu, rafael.
evgeny777 set the repository for this revision to rL LLVM.
evgeny777 added a project: lld.
evgeny777 updated this object.
evgeny777 added subscribers: grimar, ikudrin, llvm-commits.
ruiu accepted this revision.Nov 15 2016, 11:00 AM
ruiu edited edge metadata.

LGTM. Thanks!

ELF/OutputSections.cpp
469 ↗(On Diff #77994)

Can you keep this comment?

This revision is now accepted and ready to land.Nov 15 2016, 11:00 AM
This revision was automatically updated to reflect the committed changes.