[PATCH] D29364: [ELF] Handle multiple discontiguous .note sections

Petr Hosek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 31 19:00:07 PST 2017


phosek created this revision.
phosek added a project: lld.

There could be multiple discontiguous output .note sections in which case we need to put these into separate PT_NOTE segments rather then placing them into a single segment. Where possible, we could reorder the input sections to make sure that all .note are layed out next to each other to avoid creation multiple PT_NOTE segments, but even in that case, it's still possible to construct a discontiguous case e.g. by using a linker script.


Repository:
  rL LLVM

https://reviews.llvm.org/D29364

Files:
  ELF/Writer.cpp
  test/ELF/note-loadaddr.c
  test/ELF/note-multiple.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D29364.86554.patch
Type: text/x-patch
Size: 3430 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170201/989240bf/attachment-0001.bin>


More information about the llvm-commits mailing list