Example 3: Generating a Boot Table
C-12
Example C–8. Linker Command File to Form a Single Boot Section
–c
–l rts.lib
–m boot1.map
–o boot.out
MEMORY
{
PAGE 0 : PROG : origin = 001400h, length = 01000h
PAGE 1 : DATA : origin = 0080h, length = 01000h
}
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 PAGE 1
.bss
: {} > DATA PAGE 1
.const
: {} > DATA PAGE 1
.sysmem
: {} > DATA PAGE 1
.stack
: {} > DATA PAGE 1
}
Example C–9 shows a portion of the map file generated when the linker is
executed with this command file.
Summary of Contents for TMS320C54x
Page 38: ......
Page 39: ......
Page 40: ......
Page 41: ......
Page 42: ......
Page 43: ......
Page 44: ......
Page 45: ......
Page 46: ......
Page 47: ......
Page 48: ......
Page 49: ......
Page 50: ......
Page 51: ......
Page 52: ......
Page 53: ......
Page 54: ......
Page 55: ......
Page 56: ......
Page 57: ......
Page 58: ......
Page 59: ......
Page 60: ......
Page 61: ......
Page 62: ......
Page 276: ......
Page 277: ......
Page 278: ......
Page 279: ......
Page 280: ......
Page 281: ......
Page 282: ......
Page 283: ......
Page 284: ......
Page 285: ......
Page 286: ......
Page 287: ......
Page 288: ......
Page 289: ......
Page 290: ......
Page 291: ......
Page 292: ......
Page 293: ......
Page 294: ......
Page 295: ......
Page 296: ......
Page 297: ......
Page 298: ......
Page 299: ......
Page 300: ......
Page 301: ......
Page 302: ......