loladiro added a comment. I added trimMemoryBlock to Memory because it depends on the system Page size, but later realized that Process already exposes that, so I would be happy to just make that a static function in the SectionMemoryManager. http://reviews.llvm.org/D15202