SLAU131V October 2004 – February 2020
Normally, any reference to a symbol refers to its run-time address. However, it may be necessary at run time to refer to a load-time address. Specifically, the code that copies a section from its load address to its run address must have access to the load address. The .label directive defines a special symbol that refers to the section's load address. Thus, whereas normal symbols are relocated with respect to the run address, .label symbols are relocated with respect to the load address. See Create a Load-Time Address Label for more information on the .label directive.
Example 10 and Example 11 show the use of the .label directive to copy a section from its load address in EXT_MEM to its run address in P_MEM. Figure 8-3 illustrates the run-time execution of Example 10.
If you use the table operator, the .label directive is not needed. See Section 8.8.4.1.