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

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 21 05:54:47 PST 2018


grimar created this revision.
grimar added reviewers: ruiu, espindola.
Herald added subscribers: arichardson, emaste.

This continues direction shown in https://reviews.llvm.org/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).


https://reviews.llvm.org/D43571

Files:
  ELF/LinkerScript.cpp
  ELF/LinkerScript.h
  ELF/Writer.cpp
  test/ELF/linkerscript/implicit-program-header.s
  test/ELF/linkerscript/orphan-phdrs.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43571.135237.patch
Type: text/x-patch
Size: 6164 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180221/b2e627da/attachment.bin>


More information about the llvm-commits mailing list