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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

CHAPTER 5 SPECIFICATIONS OF A LINKER<br />

■ Example of Location when -AL 1 is Specified<br />

The following is an example of location when the linker options are specified and the sections contents are<br />

as shown below (Figure 5.6-1 and Table 5.6-3).<br />

Figure 5.6-1 Option Specification for a Linker<br />

-ro ROM=0xC1<strong>00</strong>0/0xC18FF<br />

-sc<br />

code1+code2+code3+code4+code5+code6=ROM<br />

-AL 1<br />

:<br />

Table 5.6-3 Contents of Sections<br />

Section name<br />

Location<br />

attribute<br />

Address range<br />

Alignment<br />

value<br />

Size<br />

code1 REL - 2 0x0180<br />

code2 REL - 2 0x01<strong>00</strong><br />

code3 REL - 2 0x02<strong>00</strong><br />

code4 REL - 4 0x01<strong>00</strong><br />

code5 REL - 4 0x02<strong>00</strong><br />

code6 REL - 2 0x<strong>00</strong>20<br />

AbsSec ABS 0x1120-0x121F 0 0x01<strong>00</strong><br />

Figure 5.6-2 shows an example of location when -AL 1 is specified.<br />

As shown in this example, specify -AL 1 to have a linker optimally locate sections in the specified area so<br />

that they do not overlap with absolute sections and the available area is the smallest.<br />

Figure 5.6-2 Example of Location when -AL 1 is Specified<br />

0xC1<strong>00</strong>0<br />

0xC11<strong>00</strong><br />

0xC1120<br />

0xC1220<br />

0xC1420<br />

0xC1620<br />

code4<br />

code6<br />

AbsSec<br />

code5<br />

code3<br />

code1<br />

0xC17A0<br />

0xC18A0<br />

0xC18FF<br />

code2<br />

Unused(available)<br />

ROM area specified in -sc<br />

68 PART II LINKER

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

Saved successfully!

Ooh no, something went wrong!