Skip to content

Commit e174305

Browse files
authored
Explicitly align to 4k (#9041)
This is just for parity with what `clang` uses, it will align the `libxamarin-app.so` library to a more natural boundary of 4k bytes (size of a memory page on Android)
1 parent bd95226 commit e174305

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Xamarin.Android.Build.Tasks/Tasks/LinkApplicationSharedLibraries.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ IEnumerable<Config> GetLinkerConfigs ()
129129
"-soname libxamarin-app.so " +
130130
"-z relro " +
131131
"-z noexecstack " +
132+
"-z max-page-size=4096 " +
132133
"--enable-new-dtags " +
133134
"--build-id " +
134135
"--warn-shared-textrel " +

0 commit comments

Comments
 (0)