This is an archive of the discontinued LLVM Phabricator instance.

[ELF] - Move PT_LOADs creation logic to Writer::createLoads()
AbandonedPublic

Authored by grimar on Aug 15 2016, 5:28 AM.

Details

Reviewers
ruiu
Summary

Logic of PT_LOADS segments creation can be different depending on
was linkerscript used or not.
Patch separates logic in the way to give ability to easy overide it with linker
specific logic of PT_LOADS creation.

Diff Detail

Event Timeline

grimar updated this revision to Diff 68021.Aug 15 2016, 5:28 AM
grimar retitled this revision from to [ELF] - Move PT_LOADs creation logic to Writer::createLoads().
grimar updated this object.
grimar added a reviewer: ruiu.
grimar added subscribers: llvm-commits, grimar, davide, evgeny777.

We have separate implementation for createPhrs() in Writer and LinkerScript, so I wonder why do you need this?

We have separate implementation for createPhrs() in Writer and LinkerScript, so I wonder why do you need this?

It is used when there are PHDRS commands. That is not this case.

grimar abandoned this revision.Aug 19 2016, 9:21 AM

We are not going to separate logic for segments creation now.