10.1.2. Assembler (armasm)

Like the compiler the symbol visibility can be controlled by assembler command-line options or in the source code. Also, the assembler gives symbol definitions and references hidden visibility by default. You can change this to STV_DEFAULT visibility using the --no_hide_all option.

The symbol visibility can also be controlled in the source code. In the assembler, symbols remain local unless they are imported, using the IMPORT directive, or exported with the EXPORT directive. You can add an extra attribute to control the visibility.

Table 10.3. Dynamic object assembler directives

OptionSupported fromVisibility

    IMPORT foo

    EXPORT bar

RVCT 2.2STV_HIDDEN

    IMPORT foo,DYNAMIC

    EXPORT bar,DYNAMIC

RVCT 2.2STV_DEFAULT

    IMPORT foo,PROTECTED

    EXPORT bar,PROTECTED

RVCT 2.2STV_PROTECTED

    IMPORT foo,HIDDEN

    EXPORT bar,HIDDEN

RVCT 2.2STV_HIDDEN

    IMPORT foo,INTERNAL

    EXPORT bar,INTERNAL

RVCT 3.1STV_INTERNAL

Copyright © 2010 ARM. All rights reserved.ARM DAI 0242A
Non-ConfidentialID011411