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]

[skanduru@earth.siliconrock.com: VMA different from LMA]


Hi,

I think I am now posting in the right mailing list thanks to Eric.

I appreciate any help provided in this regard.

I am using gcc-3.2.2.1 as cross-compiler and binutils-2.13.1-1. How can I
specify VMA different from LMA for all sections of an executable in ldscripts ?

For Ex.I want VMA start = 0xff030000; LMA start = 0x50000;

Suppose I have a linker script like this:


OUTPUT_FORMAT("elf32-powerpc", "elf32-powerpc",
              "elf32-powerpc")
OUTPUT_ARCH(powerpc:common)
ENTRY(_start)

SECTIONS
{
   .init :
  {
    KEEP (*(.init))
  }
  .text :
  {
    *(.text)
  }
  .fini :
  {
    *(.fini)
  }
  .rodata :
  {
    *(.rodata)
  }
  .data  :
  {
    *(.data)
  }
  _edata = .;
 .bss :
  {
    *(.bss)
  }
  _end = .;
}

Thanks,
Srini.

----- End forwarded message -----


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