This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Problem in using OVERLAY (BFD/ld); lma = vma
- From: kannann at cognigine dot com (Kannan Narayanan)
- To: <binutils at sources dot redhat dot com>
- Date: Fri, 12 Apr 2002 15:54:38 -0700
- Subject: Problem in using OVERLAY (BFD/ld); lma = vma
Dear all,
I need your help in understanding the internals of BFD.
I have been trying to use the GNU linker to implement a overlay system.
My linker script has the following lines:
/* OVERLAYS */
OVERLAY 0x81000 : AT (0xa0000000)
{
.text1 { o1/*.o(.text) }
.text2 { o2/*.o(.text) }
}
There is a comment in BFD, that says lma is not really used anywhere.
Inside ld, I find that before calling bfd_close (in ldmain.c), the
output_bfd, has the different lma, and vma appropriately. But, after the
bfd_close, if I read bfd_openr to read the a.out file, I always get equal
lma and vma.
(I need the lma to load my rom image.)
Please give me any inputs.
Awaiting your response,
Thanks very much,
Kannan.