![]() |
![]() |
![]() |
> SharedLibraryDescription |
SharedLibraryDescription
/ConfigRecord/Module/SharedLibraryRegions/SharedLibrary/SharedLibraryDescription/MemorySize
The MemorySize element defines a black box for the shared library. You must ensure that the memory provided will be sufficient for the shared library. If the final shared library requires more memory than is provided for it in the black box, the build will fail.
<SharedLibraryDescription ...> <MemorySize MemorySizeBss="0x4000" MemorySizeText="0x60000" MemorySizeData="0x8000" MemorySizeRoData="0xa000"/> </SharedLibraryDescription>
If your library requires additional ELF sections, add an AdditionalSection element for each additional section:
<SharedLibraryDescription ...> <MemorySize MemorySizeBss="0x4000" MemorySizeText="0x60000" MemorySizeData="0x8000" MemorySizeRoData="0xa000"/> <AdditionalSection ..."> </SharedLibraryDescription>
To minimize the impact of change on the configuration and certification on the library and the module as a whole, you should size each section to accommodate the largest reasonably foreseeable size of the section, rather than setting it to the minimum size required to accommodate the current section.
If you increase the size of the shared library region, you may also have to change the values of the following settings to accommodate the increased size of the shared library:
Required
None
The maximum size (in bytes) of the shared library’s BSS section of the ELF file.
Optional
ConfigRecord
Unsigned 32 bit integer
A value of 0 is used.
None
The upper bound is dependent on system configuration.
The value must be a multiple of the CPU page size.
The maximum size (in bytes) of the shared library’s Data section of the ELF file.
Optional
ConfigRecord
Unsigned 32 bit integer
A value of 0 is used.
None
The value must be a multiple of the CPU page size.
The upper bound is dependent on system configuration.
The maximum size (in bytes) of the shared library’s PersistentBSS section of the ELF file.
Optional
None
Unsigned 32 bit integer
A value of 0 is used.
None
The value must be a multiple of the CPU page size.
The upper bound is dependent on system configuration.
The maximum size (in bytes) of the shared library’s PersistentData section of the ELF file.
Optional
ConfigRecord
Unsigned 32 bit integer
A value of 0 is used.
None
The upper bound is dependent on system configuration.
The maximum size (in bytes) of the shared library’s RoData section of the ELF file.
Optional
ConfigRecord
Unsigned 32 bit integer
A value of 0 is used.
None
The value must be a multiple of the CPU page size.
The upper bound is dependent on system configuration.
The maximum size (in bytes) of the shared library’s Text section of the ELF file.
Optional
ConfigRecord
Unsigned 32 bit integer
A value of 0 is used.
None
The value must be a multiple of the CPU page size.
The upper bound is dependent on system configuration.
Generated on 2007-10-15 17:17:22.