This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]