Skip to content

Commit 7fc2ec2

Browse files
committed
Align ELF sections with 16KB segments
In order to not crash on systems that use 16KB pages
1 parent 88892eb commit 7fc2ec2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

CMakeLists.txt

+1
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ CHECK_C_COMPILER_FLAG(-Oz COMPILER_SUPPORTS_OZ)
1515
if(COMPILER_SUPPORTS_OZ)
1616
add_definitions("-Oz")
1717
endif()
18+
set (CMAKE_SHARED_LINKER_FLAGS "-Wl,-z,max-page-size=16384")

0 commit comments

Comments
 (0)