Subject: vms different from lma
To: None <port-powerpc@netbsd.org>
From: Srinivasa Kanduru <ksraghavan@yahoo.com>
List: port-powerpc
Date: 01/31/2004 01:45:18
Hi,
How can I specify VMA different from LMA for all sections of an executable in a
ldscript ?
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.
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free web site building tool. Try it!
http://webhosting.yahoo.com/ps/sb/