This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Linker options for dividing flash
- From: "Kishore, Jonnalagadda \(IE10\)" <Kishore dot Jonnalagadda at honeywell dot com>
- To: <binutils at sourceware dot org>
- Date: Mon, 2 Apr 2007 15:03:00 +0530
- Subject: Linker options for dividing flash
I recently sent a mail on this but received no response. Perhaps I was
not clear enough or put in too much. :-)
Let me explain the situation I am in for which I seek a solution.
The board boots with bootstrap NOR flash and I want to divide the flash
into 3 sections.
In the fist section I have startup code for the processor (coldfire) to
be executed and then a condition check happens which decides which of
the two other sections should continue executing and jumps into its
entry location.
In section 2, I perform no startup (not exactly but dealing with that is
the next step) and the entry is going to be main() where the rest of the
processing happens.
Section 3 is essentially the same as section 2 located at another
address range.
The problem I have is that each of the three sections is to be built
independently thus generating 3 elf images. For section one to jump into
section 2 or 3, I need to fix the entry address of sections 1 and 2 for
a given board. Suppose I have allocated 64KB for each section, I need to
inform the linker that the address range for section 1 is 0-64, 65-128
for section 2 and 129-192 for section 3.
Hope I was clear enough! :-) How do I achieve this?
Thanks in advance for your response.
Warm regards,
Kishore