This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
How to map text and data section to same address in the linker script for targets based on Harvard architectures
- From: Sarajyo Puli <psarajyo at yahoo dot com>
- To: binutils at sourceware dot org
- Date: Tue, 2 Jun 2009 10:35:01 -0700 (PDT)
- Subject: How to map text and data section to same address in the linker script for targets based on Harvard architectures
Hi,
? For targets based on Harvard architectures, it is possible that the program memory and data memory are
two different memory systems, hence both of them could start/map at the same start address.
But, if I set the start address of text and data segment in the linker script, linker errors out saying
that both text and data section overlaps (while creating the final executable).
Does anyone have an idea how to do this in the linker script for a cross linker?
Or?is it the job of the loader to do the right mapping?
Any pointers or references are very much appreciated.
Regards,
Sarajyo