Hi All,
Is there a way (linker options, compiler options, pragmas etc ) to locate a section to a particular address. As an example, I want to place an integer variable var in a section mysection, and want set the address of mysection to be 0x20000000.
I have seen the linker opiton /SECTION. However, it does not allow me to set the address of a section.

Setting Sections Base Address
rpk_isv
Tell me why do you need this
If you want to share memory with another process you can use a memory mapped file.
Vaidyak
It is much easier to use a memory mapped file.
You can never guarenty that this address space is free in every process you want to share this data.
It is not possible!
TravisM727
I want to put some global variables in my own created data section and then want that data section to be located at a specific virtual memory address. Therefore, I need to locate a section at a particular location in virtual memory.
thanks.