This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Need Help on Symbol/Variable Name Problem


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]