[PATCH] D35680: [ELF] - Round executable PT_LOAD to page size and pad it with traps

George Rimar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 20 05:39:37 PDT 2017


grimar created this revision.
Herald added subscribers: javed.absar, emaste, jyknight.

This is PR33819,

Patch attempts to simplify outdated https://reviews.llvm.org/D33630.
Patch uses changes by https://reviews.llvm.org/D34956 partially, so it is applied in diff as well.

Main logic of patch is implemented in next methods:
`assignFileOffsets()`
`writeTrapInstr()`
Other changes belongs to https://reviews.llvm.org/D34956 mostly.


https://reviews.llvm.org/D35680

Files:
  ELF/InputSection.cpp
  ELF/LinkerScript.cpp
  ELF/LinkerScript.h
  ELF/OutputSections.h
  ELF/Writer.cpp
  test/ELF/avoid-empty-program-headers.s
  test/ELF/basic-aarch64.s
  test/ELF/basic-sparcv9.s
  test/ELF/basic.s
  test/ELF/basic32.s
  test/ELF/build-id.s
  test/ELF/image-base.s
  test/ELF/relocatable.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D35680.107490.patch
Type: text/x-patch
Size: 28752 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170720/855d42c7/attachment.bin>


More information about the llvm-commits mailing list