Download TR0109 TSK3000 Embedded Tools Reference

Transcript
Linker Script Language
7.3.11 Section Layout Definition
section_definition ::= section_layout <space_ref>0|1
<( locate_direction )>0|1
{ <section_statement>>=0 }
• A section definition inside a space definition does not have a space_ref.
• All global section definitions have a space_ref.
space_ref
::= <proc_name>0|1 : <core_name>0|1
: space_name
• If more than one processor is present, the proc_name must be given for a global section layout.
• If the section layout refers to a processor that has more than one core, the core_name must be
given in the space_ref.
• A proc_name refers to a defined processor.
• A core_name refers to a defined core.
• A space_name refers to a defined address space.
locate_direction
::= direction = direction
direction
::= low_to_high
| high_to_low
• A section layout contains at most one direction statement.
• If you do not specify the direction statement, the locate direction of the section layout is
low-to-high.
section_statement
::= simple_section_statement ;
| aggregate_section_statement
simple_section_statement
::= assignment
| select_section_statement
| special_section_statement
assignment
::= symbol_name assign_op expr
assign_op
::= =
| :=
select_section_statement
::= select <section_name>0|1
<section_selections>0|1
• Either a section_name or at least one section_selection must be defined.
section_selections
::= ( section_selection
<, section_selection>>=0 )
7-13