[ Previous | Next | Contents | Home | Search ]
AIX Version 4.3 Assembler Language Reference

.lglobl Pseudo-op

Purpose

Provides a means to keep the information of a static name in the symbol table.

Syntax

.lglobl Name

Description

A static label or static function name defined within a control section (csect) must be kept in the symbol table so that the static label or static function name can be referenced. This symbol has a class of "hidden external" and differs from a global symbol. The .lglobl pseudo-op gives the symbol specified by the Name parameter have a symbol type of LD and a class of C_HIDEXT.

Note: The .lglobl pseudo-op does not have to apply to any csect name. The assembler automatically generates the symbol table entry for any csect name with a class of C_HIDEXT unless there is an explicit .globl pseudo-op applied to the csect name. If an explicit .globl pseudo-op applies to the csect name, the symbol table entry class for the csect is C_EXT.

Parameters

Name Specifies a static label or static function name that needs to be kept in the symbol table.

Examples

The following example demonstrates the use of the .lglobl pseudo-op:

        .toc
        .file    "test.s"
        .lglobl  .foo
        .csect   foo[DS]
foo:
        .long    .foo,TOC[tc0],0
        .csect   [PR]
.foo:
        .stabx   "foo:F-1",.foo,142,0
        .function        .foo,.foo,16,044,L..end_foo-.foo
        .
        .
        .
>

Related Information

Pseudo-ops Overview.

The .function pseudo-op, .globl pseudo-op.


[ Previous | Next | Contents | Home | Search ]