[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]

Assembler Language Reference

.weak Pseudo-op

Purpose

Makes a symbol with weak binding globally visible to the linker.

Syntax

.weak Name

Description

The .weak pseudo-op makes the symbol Name globally visible to the linker and available to any file that is linked to the file in which either the .globl or .weak pseudo-op occurs. However, the symbol has weak binding semantics.

Parameters

Name Represents any label or symbol that is defined locally and requires external visibility with weak storage class. This parameter can be a Qualname. (A Qualname specifies a Name and StorageMappingClass for the control section.)

Examples

The following example illustrates the use of the .weak pseudo-op:

.weak foo[RW]
.csect data[RW]

[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home | Legal | Search ]