This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
data and data starting from address 0
- From: Navid Toosizadeh <navid_toosizadeh at yahoo dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Mon, 26 Jan 2009 23:51:50 -0800 (PST)
- Subject: data and data starting from address 0
Greetings,
In my embedded system, there are two separate memories for data and code. I'd like both of them to start from address 0. When I do this, I get an overlap error message from the linker because it assumes I have the same memory for both data and code, despite the fact that I defined two different memories ram and rom.
Could you please tell me what linker script lines I should include to get rid of the overlap error message.
Thank you,
Navid