set .text section baseaddress
Posted: Sat Aug 25, 2012 11:59 pm
hi
i want create new section in c++ and set differnet base Address
for it section is there any way to do it in vc++.
like this
i want create new section in c++ and set differnet base Address
for it section is there any way to do it in vc++.
like this
Code: Select all
SECTIONS
{
. = 0x100000;
.setup :
{
*(.setup)
}
. += 0xC0000000;
.text : AT(ADDR(.text) - 0xC0000000)
{
*(.text)
}
.data ALIGN (4096) : AT(ADDR(.data) - 0xC0000000)
{
*(.data)
*(.rodata*)
}
.bss ALIGN (4096) : AT(ADDR(.bss) - 0xC0000000)
{
*(COMMON*)
*(.bss*)
}
}