AR# 50824: 14.1 EDK - Using NOLOAD Attribute to Increase Software Startup Time
14.1 EDK - Using NOLOAD Attribute to Increase Software Startup Time
When software designs contain large, uninitialized (or 0-initialized) elements, the software takes an unusually long amount of time to load.
This delay generally occurs when these elementsare uninitializedor initialized to 0; if this is the case,they will be placed in the .bss section of the linker script. This section is always initialized to 0 upon application startup, and large elements will cause a larger duration for this action.A workaround for this is to set an attribute that disables initialization for these elements; this attribute should only be added to elements that do not need to be initialized.
To begin, a new section must be added to the linker script (generally titled lscript.ld) following the template below.