Need Help on Symbol/Variable Name Problem

Ian Lance Taylor ian@airs.com
Tue Feb 5 08:12:00 GMT 2002
Jing Gloria <jing106@rocketmail.com> writes:

> Is there a way to write an assembly code so that two different symbols
> (actually global variable names) get resolved to the same memory location?

Sure.  Just do something like
    .global ALIAS
    ALIAS = SYMBOL

In C, wrap this in an asm statement.

Ian



More information about the Binutils mailing list