SPNU118Z September 1995 – March 2023 66AK2E05 , 66AK2H06 , 66AK2H12 , 66AK2H14 , AM1705 , AM1707 , AM1802 , AM1806 , AM1808 , AM1810 , AM5K2E04 , OMAP-L132 , OMAP-L137 , OMAP-L138 , SM470R1B1M-HT , TMS470R1A288 , TMS470R1A384 , TMS470R1A64 , TMS470R1B1M , TMS470R1B512 , TMS470R1B768
In most cases, you can access linker-defined functions in the same way as C/C++ functions. Provide an extern declaration (prototype) for that function, and access the function normally:
extern int linker_defined_function(void);
printf(“value is %d\n”, linker_defined_function());
In most cases, you can access linker-defined arrays in the same way as C/C++ arrays. Provide an extern declaration for the array (which can omit the first dimension), and access the array normally:
extern int linker_defined_data[][10][10];
printf(“value is %d\n”, linker_defined_data[2][3][4]);
If you receive a relocation error because the function or array is outside the normal address range, use the _symval operator as described in Section 8.6.4.