VMA different from LMA

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

If this is not the right mailing group, please direct me to the right one.

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.

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux