The ram area map in the link

Dear all,

In my project,the internal ram is limit,but some state the ram can overlay,How can define the compiler or link option?such as following.

+----------+
| area 1 |
stateA | |
| |
|==========|
stateB | area 1 |
| & | overlay
| area 2 |
+----------+

More questions in this forum