Add more information to a comment.

llvm-svn: 247408
This commit is contained in:
Rafael Espindola 2015-09-11 13:20:07 +00:00
parent 44c1d0c4f1
commit d67bb26642
1 changed files with 4 additions and 2 deletions

View File

@ -29,8 +29,10 @@ using namespace lld::elf2;
static const int PageSize = 4096;
// On linux x86_64 mmap of the first 15 pages fails, so the smallest value
// that can be used in here is 0x10000.
// On freebsd x86_64 the first page cannot be mmaped.
// On linux that is controled by vm.mmap_min_addr. At least on some x86_64
// installs that is 65536, so the first 15 pages cannot be used.
// Given that, the smallest value that can be used in here is 0x10000.
// If using 2MB pages, the smallest page aligned address that works is
// 0x200000, but it looks like every OS uses 4k pages for executables.
// FIXME: This is architecture and OS dependent.