9.15 Type directive

The .type directive sets the type of a symbol.

Syntax

.type symbol, %type

Description

.type

The .type directive sets the type of a symbol.

symbol

The symbol name to set the type for.

%type

The following types are accepted:

  • %function
  • %object
  • %tls_object

Examples

    // 'func' is a function
    .type func, %function
  func:
    bx lr

    // 'value' is a data object:
    .type value, %object
  value:
    .word 42
Non-ConfidentialPDF file icon PDF versionDUI0774J
Copyright © 2014–2017, 2019 Arm Limited or its affiliates. All rights reserved.