31.12.2013 Views

Linkage Kit Manual V6-00 - Fujitsu

Linkage Kit Manual V6-00 - Fujitsu

Linkage Kit Manual V6-00 - Fujitsu

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CHAPTER 5 SPECIFICATIONS OF A LINKER<br />

The above program has the init section containing variables with initial values, the Data section containing<br />

variable areas, and the Prog1 and Prog2 sections containing program code.<br />

Table 5.9-1 shows for each section whether execution, read or write is enabled or disabled after assembling.<br />

Table 5.9-1 Attributes of Sections after Assembly<br />

Section name Execution Read Write<br />

init × O O<br />

Data × O O<br />

Prog1 O O ×<br />

Prog2 O O ×<br />

O…Enabled ×…Disabled<br />

If init and Prog1 are specified as the sections to be transferred from ROM to RAM at the time of linking,<br />

the execution, read, and write for these sections after linking are enabled or disabled as shown in Table 5.9-2.<br />

Table 5.9-2 Attributes of Sections after Linking<br />

Section name Execution Read Write Remarks<br />

init (RAM) × O O<br />

init (ROM) × O ×<br />

ROM section provided by the linker<br />

Write is disabled.<br />

Data × O O<br />

Prog1(RAM) O O O Write is enabled.<br />

Prog1(ROM) O O × ROM section provided by the linker<br />

Prog2 O O ×<br />

O…Enabled ×…Disabled<br />

84 PART II LINKER

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!