2.9. Adding symbol versions

The ARM linker conforms to the Base Platform ABI for the ARM Architecture [BPABI] and supports the GNU-extended symbol versioning model.

To add a symbol version to an existing symbol, you must define a version symbol at the same address. A version symbol is of the form:

The version symbols must be enclosed in vertical bars.

For example, to define a default version:

|my_versioned_symbol@@ver2|   ; Default version
my_asm_function proc
                ...
                bx lr
                endp

To define a non default version:

|my_versioned_symbol@ver1|    ; Non default version
my_old_asm_function     proc
                        ...
                        bx lr
                        endp

See the chapter describing how to access symbols in RealView Compilation Tools v2.2 Linker and Utilities Guide for a full description of symbol versioning in RVCT.

Copyright © 2002-2005 ARM Limited. All rights reserved.ARM DUI 0204F
Non-Confidential