[PATCH] D24987: [ELF] Use MaxPageSize for aligning PT_LOAD

Petr Hosek via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 27 14:32:50 PDT 2016


phosek created this revision.
phosek added reviewers: ruiu, rafael.
phosek added a subscriber: llvm-commits.
phosek added a project: lld.

This matches the behavior of Binutils linkers. We also change the default MaxPageSize on x86-64 to 0x1000 to preserve the current behavior, which is the same as the behavior implemented by gold.

https://llvm.org/bugs/show_bug.cgi?id=30541

https://reviews.llvm.org/D24987

Files:
  ELF/Driver.cpp
  ELF/Target.cpp
  ELF/Writer.cpp
  test/ELF/linkerscript/data-segment-relro.s
  test/ELF/linkerscript/locationcounter.s
  test/ELF/linkerscript/outsections-addr.s
  test/ELF/linkerscript/symbol-assignexpr.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D24987.72710.patch
Type: text/x-patch
Size: 6126 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160927/7e99466e/attachment.bin>


More information about the llvm-commits mailing list