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 />

5.2.2 Control on Combining and Locating Sections<br />

Section 5.2.2 describes those linker functions used to control combining and locating<br />

sections.<br />

■ Specifying ROM and RAM areas<br />

Defining an area name by specifying the address range of the ROM and RAM areas allows you to use this<br />

area name instead of an address when specifying where to locate a section. It also allows you to make sure<br />

that the section is not located outside the range.<br />

To have sections automatically located, locate them in this area range.<br />

■ Specifying the Order of Locating Sections and the Location Addresses<br />

All the sections may be located in any area in any order. To specify a section name, use a wild card.<br />

Additionally, you can specify sections using a name plus a section contents type. Use these together with a<br />

wild card to collect only the sections with the same contents type (code, data, etc.).<br />

■ Creating a Group of Sections<br />

A linker combines and locates sections. If many sections are used to create a program, specifying where to<br />

locate the sections will be troublesome.<br />

Multiple sections may be handled as if they are one section by giving them a group name and collecting<br />

them in continuous areas.<br />

■ Support for Creating a ROM<br />

When developing a program in C/C++, a variable with an initial value is created. The variable must often<br />

be rewritten and other processing must be performed.<br />

In an application to be imported, the initial value data must be placed in ROM and transferred to RAM<br />

before the application is executed.<br />

This function enables these operations. For details, see Section "5.9 Sections to be Transferred from ROM<br />

to RAM".<br />

56 PART II LINKER

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

Saved successfully!

Ooh no, something went wrong!