The SECTIONS Directive
7-36
Blocking
uses the block keyword to specify that the section must fit
between two address boundaries: if the section is too big, it
will start on an address boundary.
.text: block(0x80)
Page
specifies the memory page to be used (see Section 7.11,
Overlay Pages, on page 7-48).
.text: PAGE 0
For the load (usually the only) allocation, you may simply use a greater-than
sign and omit the load keyword:
.text: > ROM .text: {...} > ROM
.text: > 0x1000
If more than one parameter is used, you can string them together as follows:
.text: > ROM align 16 PAGE 2
Or, if you prefer, use parentheses for readability:
.text: load = (ROM align(16) page (2))
7.8.3.1
Binding
You can supply a specific starting address for an output section by following
the section name with an address:
.text: 0x1000
This example specifies that the .text section must begin at word location
1000h. The binding address must be a 16-bit constant.
Output sections can be bound anywhere in configured memory (assuming
there is enough space), but they cannot overlap. If there is not enough space
to bind a section to a specified address, the linker issues an error message.
Note:
Binding and Alignment or Named Memory are Incompatible
You cannot bind a section to an address if you use alignment or named
memory. If you try to do so, the linker issues an error message.
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: ......