This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: linking ld absolute address
- From: Nick Clifton <nickc at redhat dot com>
- To: "Vineet Sharma, Noida" <vineets at noida dot hcltech dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Wed, 03 Dec 2003 10:16:47 +0000
- Subject: Re: linking ld absolute address
- References: <1B3885BC15C7024C845AAC78314766C5012BB8BF@EXCH-01>
Hi Vineet,
> There is a strange problem which i am facing when i resolve
> absolute address for local label(label within a file) i get the
> right address, but when i need an absolute address of the label
> outside the file i get a wrong '0' address which is wrong.
> How do i calculate the absolute address of a symbol?
We really need some more information in order to be able to help you
resolve this problem:
* Which version of binutils are you using ?
* When are you attempting to get the address of the symbols ?
Symbols are not assigned addresses until quite late on in the
linking process, so maybe you are trying to get their addresses
too soon.
* Can you provide a *small* example program that demonstrates this
problem ?
* What is the context for this problem ? ie why are you trying to
obtain the addresses of the symbols ?
Cheers
Nick