VMA different from LMA
Srinivasa Kanduru
skanduru@earth.siliconrock.com
Tue Feb 3 19:03:00 GMT 2004
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.
More information about the Gcc
mailing list