File tree 2 files changed +9
-0
lines changed
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)
137
137
"-DCMAKE_C_FLAGS=--target=${CLANG_TARGET} "
138
138
"-DCMAKE_CXX_FLAGS=--target=${CLANG_TARGET} "
139
139
"-DUSE_AMD64_ZERO_BASED_SANDBOX=${USE_AMD64_ZERO_BASED_SANDBOX} "
140
+ "-DUSE_ARMHF_16K_PAGESIZE=${USE_ARMHF_16K_PAGESIZE} "
140
141
-DBUILD_NACL_LOADER=OFF
141
142
-DBUILD_NACL_HELPER_BOOTSTRAP=ON
142
143
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)
4
4
option (USE_STATIC_LIBS "Tries to use static libs where possible." OFF )
5
5
endif ()
6
6
7
+ if (ARCH_armhf)
8
+ option (USE_ARMHF_16K_PAGESIZE "Build armhf binaries with 16K PageSize." OFF )
9
+ endif ()
10
+
7
11
macro (set_ASM_flag FLAG)
8
12
set (lang ASM)
9
13
if (${ARGC} GREATER 1)
@@ -93,6 +97,10 @@ if (USE_STATIC_LIBS)
93
97
set_linker_flag("-static" )
94
98
endif ()
95
99
100
+ if (USE_ARMHF_16K_PAGESIZE)
101
+ set_linker_flag("-Wl,-z,max-page-size=16384" )
102
+ endif ()
103
+
96
104
#TODO: Import from SetUpClang() from (root)/SConstruct.
97
105
#TODO: This is mostly ASAN configurations.
98
106
You can’t perform that action at this time.
0 commit comments