-
Notifications
You must be signed in to change notification settings - Fork 532
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make APK and shared library alignment configurable #9046
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,6 +55,9 @@ sealed class ApplicationConfig | |
public uint jni_remapping_replacement_type_count; | ||
public uint jni_remapping_replacement_method_index_entry_count; | ||
|
||
// 3, for 4-byte alignment (4k memory pages); 15, for 16-byte alignment (16k memory pages) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why are the mask 3 and 15 respecitvely? noth 4 and 16? (silly question). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. With alignment to 4k, bits 0 and 1 of the address must be 0 and with 16k, bits 0-3 must be 0. We could use the actual alignment here and then subtract The relevant code is here |
||
public uint zip_alignment_mask; | ||
|
||
[NativeAssembler (NumberFormat = LLVMIR.LlvmIrVariableNumberFormat.Hexadecimal)] | ||
public uint mono_components_mask; | ||
public string android_package_name = String.Empty; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any benefit to putting new settings at the end? Then it could be slightly more compatible with existing files? (Does it even matter?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It doesn't matter. There's no guarantee of compatibility between any releases of XA with regards to this (by design).