File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -137,6 +137,7 @@ if (BUILD_NACL_HELPER_BOOTSTRAP)
137137 "-DCMAKE_C_FLAGS=--target=${CLANG_TARGET} "
138138 "-DCMAKE_CXX_FLAGS=--target=${CLANG_TARGET} "
139139 "-DUSE_AMD64_ZERO_BASED_SANDBOX=${USE_AMD64_ZERO_BASED_SANDBOX} "
140+ "-DUSE_ARMHF_16K_PAGESIZE=${USE_ARMHF_16K_PAGESIZE} "
140141 -DBUILD_NACL_LOADER=OFF
141142 -DBUILD_NACL_HELPER_BOOTSTRAP=ON
142143 INSTALL_COMMAND "${CMAKE_COMMAND} " -E copy nacl_helper_bootstrap
Original file line number Diff line number Diff line change @@ -4,6 +4,10 @@ if (NOT MSVC)
44 option (USE_STATIC_LIBS "Tries to use static libs where possible." OFF )
55endif ()
66
7+ if (ARCH_armhf)
8+ option (USE_ARMHF_16K_PAGESIZE "Build armhf binaries with 16K PageSize." OFF )
9+ endif ()
10+
711macro (set_ASM_flag FLAG)
812 set (lang ASM)
913 if (${ARGC} GREATER 1)
@@ -93,6 +97,10 @@ if (USE_STATIC_LIBS)
9397 set_linker_flag("-static" )
9498endif ()
9599
100+ if (USE_ARMHF_16K_PAGESIZE)
101+ set_linker_flag("-Wl,-z,max-page-size=16384" )
102+ endif ()
103+
96104#TODO: Import from SetUpClang() from (root)/SConstruct.
97105#TODO: This is mostly ASAN configurations.
98106
You can’t perform that action at this time.
0 commit comments