.globl Directive

Syntax

.globl name

Description

The .globl directive identifies name as an external symbol. If the name is otherwise defined (for example, by its appearance as a label), the assembler exports the symbol; otherwise, it imports the symbol. In general, the assembler imports undefined symbols; that is, it gives them the storage class "global undefined" and requires the linker to resolve them.

Note   This directive must be used prior to the first reference of name.