This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]