This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[skanduru@earth.siliconrock.com: VMA different from LMA]
- From: Srinivasa Kanduru <skanduru at earth dot siliconrock dot com>
- To: binutils at sources dot redhat dot com
- Cc: Eric Christopher <echristo at redhat dot com>
- Date: Tue, 3 Feb 2004 11:52:43 -0800
- Subject: [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 -----