How to split memory in linker script to get the lower address as start of .text?

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

 




Hi,

I have a doubt in linker script MEMORY command.

I have divided my available memory area into 3 regions as follows:

MEMORY
{
   stack(w): org = 0x8000000, len = 0x50000
   runtime(w) : org = 0x8050010, len = 0x400000
   swimage(wx): org = 0x8450020, len = 0x30000
}

The swimage region contains text section as well as copy of .data,
.bss(LMA).
The runtime region contains .data, .bss sections (VMA).

When I use objdump -p command to dump the program header for the .out
generated with the above linker script MEMORY split, the lower address is
interpreted as 0x8000000. The higher and execution addresses are dumped as
expected. However, I would like to get the lower address of memory region as
the start address of swimage region i.e 0x8450020.

How can I get that? Please suggest.

Thanks and regards,
Jeffi

-- 
View this message in context: http://old.nabble.com/How-to-split-memory-in-linker-script-to-get-the-lower-address-as-start-of-.text--tp28251238p28251238.html
Sent from the gcc - Help mailing list archive at Nabble.com.


[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