Linker User GuidePreface Overview of the Linker Linking Models Supported by armlink Image Structure and Generation Linker Optimization Features Getting Image Details Accessing and Managing Symbols with armlink About mapping symbols Linker-defined symbols Region-related symbols Types of region-related symbols Image$$ execution region symbols Load$$ execution region symbols Load$$LR$$ load region symbols Region name values when not scatter-loading Linker defined symbols and scatter files Methods of importing linker-defined symbols in C a Methods of importing linker-defined symbols in ARM Section-related symbols Types of section-related symbols Image symbols Input section symbols Access symbols in another image Creating a symdefs file Outputting a subset of the global symbols Reading a symdefs file Symdefs file format Edit the symbol tables with a steering file Specifying steering files on the linker command-li Steering file command summary Steering file format Hide and rename global symbols with a steering fil Use of $Super$$ and $Sub$$ to patch symbol definit Scatter-loading Features Scatter File Syntax Linker Command-line Options Linker Steering File Command Reference Via File Syntax
Methods of importing linker-defined symbols in ARM assembly language
6.3.8 Methods of importing linker-defined symbols in ARM® assembly language
You can import linker-defined symbols into your ARM® assembly code.
To import linker-defined symbols into your assembly language source code, use the
Create a 32-bit data word to hold the value of the symbol, for example:
IMPORT |Image$$ER_ZI$$Limit| … zi_limit DCD |Image$$ER_ZI$$Limit|
To load the value into a register, such as r1, use the
LDR r1, zi_limit
of your data.