Set pagezero size and .text.keep section executable on Mac.
commitf5d2c501115ee8dba1f6968e30f2beb2f1bf553c
authorJingyi Wei <jyw@epochtimes.com>
Tue, 12 May 2015 04:24:09 +0000 (11 21:24 -0700)
committerhhvm-bot <hhvm-bot@fb.com>
Tue, 12 May 2015 05:00:44 +0000 (11 22:00 -0700)
tree29a416d9d7af4224812039687cf7dc53c13e3cb7
parentdbc44e8d77e94172498c8872e8c9ef11494352e2
Set pagezero size and .text.keep section executable on Mac.

Summary: The pagezero section is required to be the first section on Mac 10.10. Set the
size smaller than default, so the code blocks will get 32-bit addresses.

The .text.keep section needs to be executable because the functions in this
section will be called.

Part of #4444. Related to #5193.
Closes https://github.com/facebook/hhvm/pull/5225

Reviewed By: @sgolemon

Differential Revision: D2032866
CMake/HPHPSetup.cmake