This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Need Help on Symbol/Variable Name Problem
- From: Ian Lance Taylor <ian at airs dot com>
- To: Jing Gloria <jing106 at rocketmail dot com>
- Cc: binutils at sources dot redhat dot com, j-gloria at ti dot com
- Date: 05 Feb 2002 08:06:54 -0800
- Subject: Re: Need Help on Symbol/Variable Name Problem
- References: <20020205155123.59116.qmail@web14701.mail.yahoo.com>
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