Example 3: Generating a Boot Table
Example C–8. Linker Command File to Form a Single Boot Section
C-12
–c
–l rts.lib
–m boot1.map
–o boot.out
MEMORY
{
PAGE 0 : PROG
PAGE 1 : DATA
}
SECTIONS
{
boot_sec: { *(.text)
/*–––––––––––––––––––––––––––––––––––––*/
/* Set start address for C init table
/*–––––––––––––––––––––––––––––––––––––*/
cinit = .;
/*–––––––––––––––––––––––––––––––––––––*/
/* Include all cinit sections
/*–––––––––––––––––––––––––––––––––––––*/
*(.cinit)
/*–––––––––––––––––––––––––––––––––––––*/
/* Reserve a single space for the zero */
/* word to mark end of C init
/*–––––––––––––––––––––––––––––––––––––*/
.+=1;
}
fill = 0x0000, /* Make sure fill value is 0
load = PROG PAGE 0
.data
: {} > DATA
.bss
: {} > DATA
.const
: {} > DATA
.sysmem
: {} > DATA
.stack
: {} > DATA
}
Example C–9 shows a portion of the map file generated when the linker is
executed with this command file.
: origin = 001400h, length = 01000h
: origin = 0080h,
PAGE 1
PAGE 1
PAGE 1
PAGE 1
PAGE 1
length = 01000h
*/
*/
*/
*/
Need help?
Do you have a question about the TMS320C54x and is the answer not in the manual?