Problem in using OVERLAY (BFD/ld); lma = vma
Kannan Narayanan
kannann@cognigine.com
Fri Apr 12 15:54:00 GMT 2002
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.
More information about the Binutils
mailing list