This is an archive of the discontinued LLVM Phabricator instance.

[ELF] - Do not remove empty output sections that are explicitly assigned to phdr in script.
ClosedPublic

Authored by grimar on Feb 21 2018, 5:52 AM.

Details

Summary

This continues direction shown in D43069.

I suggest to keep sections that are explicitly assigned to segment in script.
With that code can be simplified (as shown in diff).

Also with that it might be possible to get rid of Live flag of output section (if we want).

Diff Detail

Repository
rL LLVM