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 6 LINKER OPTIONS<br />

6.2.23 Section Group Specification (-gr)<br />

Multiple sections are linked to create a group according to the purpose of the user and<br />

a group name is given to the group.<br />

By using this group name when specifying the section allocation, multiple sections can<br />

be handled as one group.<br />

■ Section Group Specification (-gr)<br />

[Format]<br />

-gr = [ / ] [ , … ]<br />

[Parameters]<br />

<br />

Generic name of multiple sections to be grouped<br />

<br />

Describes section names to be grouped.<br />

The wild card can be used.<br />

When specifying multiple names, link them with the + symbol.<br />

<br />

code, data, stack, const, IO<br />

[Description]<br />

Sections to be grouped and the order of section allocation in the group are specified.<br />

The order of section allocation follows the order described in the parameters.<br />

Each group name must be a unique name which does not overlap with the section names and other<br />

group names.<br />

A section that belongs to one group must not belong to another group.<br />

When using the wild card, indicate it using double quotation marks("). Do not use double quotation<br />

marks (") in an option file.<br />

[Example 1]<br />

flnk911s *.obj -o ap.abs -ro ROM=0xC1<strong>00</strong>0/0xCFFFF<br />

-ra RAM=0x1<strong>00</strong>0/0x13FF...-gr romG=P+code+text1 -sc romG=ROM,D=RAM ...<br />

When using the grouping option, the whole group can be represented by its group name instead of<br />

specifying any number of section names.<br />

[Example 2]<br />

flnk911s *.obj -o ap.abs -gr cdgrp=*/code -sc cdgrp=0xC1<strong>00</strong>0<br />

All sections whose content type is code are linked to a group and the group name cdgrp is given to the<br />

group. Then the group is allocated to the address 0xC1<strong>00</strong>0 using the -sc option.<br />

124 PART II LINKER

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

Saved successfully!

Ooh no, something went wrong!