16k: Align shared libraries and executables to 4k by default
The default ELF segment alignment will be 4096. This alignment can be overriden by setting the desired alignment in PRODUCT_MAX_PAGE_SIZE_SUPPORTED flag. The alignment has to be a multiple of the configured kernel page size. Test: Built changes for Pixel 4a, 6 and checked alignment. Bug: 276963698 Bug: 276801883 (cherry picked from https://android-review.googlesource.com/q/commit:05d4d901146d96634ad0ff3a9982c9c87c394f18) Merged-In: Icb380041a5b27da1fa0d86b302e1e7cde9a236d7 Change-Id: Icb380041a5b27da1fa0d86b302e1e7cde9a236d7
This commit is contained in:
committed by
Cherrypicker Worker
parent
ec0e5a3e97
commit
e6979a102c
@@ -218,6 +218,7 @@ type productVariables struct {
|
||||
DeviceVndkVersion *string `json:",omitempty"`
|
||||
DeviceCurrentApiLevelForVendorModules *string `json:",omitempty"`
|
||||
DeviceSystemSdkVersions []string `json:",omitempty"`
|
||||
DeviceMaxPageSizeSupported *string `json:",omitempty"`
|
||||
|
||||
RecoverySnapshotVersion *string `json:",omitempty"`
|
||||
|
||||
@@ -505,6 +506,7 @@ func (v *productVariables) SetDefaultConfig() {
|
||||
DeviceSecondaryArchVariant: stringPtr("armv8-a"),
|
||||
DeviceSecondaryCpuVariant: stringPtr("generic"),
|
||||
DeviceSecondaryAbi: []string{"armeabi-v7a", "armeabi"},
|
||||
DeviceMaxPageSizeSupported: stringPtr("4096"),
|
||||
|
||||
AAPTConfig: []string{"normal", "large", "xlarge", "hdpi", "xhdpi", "xxhdpi"},
|
||||
AAPTPreferredConfig: stringPtr("xhdpi"),
|
||||
|
Reference in New Issue
Block a user