* Unable To Jump To Undefined Symbol
@ 2006-03-14 13:46 Deepak Pandey
2006-03-14 15:27 ` leslie.polzer
2006-03-14 16:26 ` joy merwin monteiro
0 siblings, 2 replies; 3+ messages in thread
From: Deepak Pandey @ 2006-03-14 13:46 UTC (permalink / raw)
To: linux-assembly
Hi,
I got a compilation problem saying UNABLE TO JUMP TO UNDEFIND SYMBOL
while compiling a code in which I tried to jump to a symbol(symbol_name)
from a different file by an assembly instruction (j symbol_name).However
I also declared the symbol as global(.globl symbol_name) but still it
didnot worked.
The Symbol was defined as follows:
LEAF(symbol_name)
/*some assembly instructions*/
END(symbol_name)
Thanks in Advance.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Unable To Jump To Undefined Symbol
2006-03-14 13:46 Unable To Jump To Undefined Symbol Deepak Pandey
@ 2006-03-14 15:27 ` leslie.polzer
2006-03-14 16:26 ` joy merwin monteiro
1 sibling, 0 replies; 3+ messages in thread
From: leslie.polzer @ 2006-03-14 15:27 UTC (permalink / raw)
To: Deepak Pandey; +Cc: linux-assembly
[-- Attachment #1: Type: text/plain, Size: 841 bytes --]
On Tue, Mar 14, 2006 at 07:16:30PM +0530, Deepak Pandey wrote:
> Hi, I got a compilation problem saying UNABLE TO JUMP TO UNDEFIND
> SYMBOL while compiling a code in which I tried to jump to a
> symbol(symbol_name) from a different file by an assembly instruction
> (j symbol_name).However I also declared the symbol as global(.globl
> symbol_name) but still it didnot worked.
You need to tell the assembler in the file which references the symbol
that it's out there. Use extern, EXTRN or whatever directive your
assembler supports for this purpose.
> The Symbol was defined as follows:
> LEAF(symbol_name)
> /*some assembly instructions*/
> END(symbol_name)
What assembler uses these syntactic constructs?
Leslie
--
gpg --keyserver pgp.mit.edu --recv-keys 0x52D70289
http://nic-nac-project.de/~skypher/
[-- Attachment #2: Type: application/pgp-signature, Size: 191 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Unable To Jump To Undefined Symbol
2006-03-14 13:46 Unable To Jump To Undefined Symbol Deepak Pandey
2006-03-14 15:27 ` leslie.polzer
@ 2006-03-14 16:26 ` joy merwin monteiro
1 sibling, 0 replies; 3+ messages in thread
From: joy merwin monteiro @ 2006-03-14 16:26 UTC (permalink / raw)
To: Deepak Pandey; +Cc: linux-assembly
yup, as leslie pointed out, you need an EXTRN directive so that
undefined refernces are handled by the linker. and what is LEAF, END ???
On 3/14/06, Deepak Pandey <deepak.pandey@wipro.com> wrote:
> Hi,
> I got a compilation problem saying UNABLE TO JUMP TO UNDEFIND SYMBOL
> while compiling a code in which I tried to jump to a symbol(symbol_name)
> from a different file by an assembly instruction (j symbol_name).However
> I also declared the symbol as global(.globl symbol_name) but still it
> didnot worked.
> The Symbol was defined as follows:
> LEAF(symbol_name)
> /*some assembly instructions*/
> END(symbol_name)
> Thanks in Advance.
> -
> To unsubscribe from this list: send the line "unsubscribe linux-assembly" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
--
The person who cannot reason is a fool, one who won't reason is a bigot,
one who dare not reason is a slave.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-03-14 16:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-03-14 13:46 Unable To Jump To Undefined Symbol Deepak Pandey
2006-03-14 15:27 ` leslie.polzer
2006-03-14 16:26 ` joy merwin monteiro
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).