Skip to content

Commit 271356c

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

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

CMakeLists.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,5 @@ 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")
19+
set(CMAKE_VERBOSE_MAKEFILE ON)

0 commit comments

Comments
 (0)