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.

8.2 Q&A for Using the Linker<br />

8.2 Q&A for Using the Linker<br />

Section 8.2 shows the questions and answers on using a linker.<br />

■ Q&A for Using the Linker<br />

● Using the wild card<br />

Q. There are a large number of input object module files. Can the wild card still be used?<br />

A. If you use the wild card for specifying the input file on the command line, the linker<br />

expands and executes it. You can specify the input file name in an option file, and the<br />

wild card can also be used here. Refer to the following example for using the wild card.<br />

Example flnk911s *.obj -o outfile.abs<br />

flnk911s mactrl.obj xz???.obj<br />

Q. The wild card can be used when specifying section allocation, but how can I use the wild<br />

card?<br />

A. The wild card may be useful when many sections with the same content type should be<br />

unified or when programs are created using many section names. It may become<br />

necessary to decide characters to become the keywords when naming the section names,<br />

considering the use of the wild card by the linker.<br />

Example Section names are defined with the names like DTdata1, DTdata2, DTdata3, DTdata4<br />

....for the sections whose content type is data, and the names like<br />

CDprog1, CDprog2, CDprog3, CDprog4.... for the sections whose content type is code.<br />

In this case, the following specification method can be selected. (Only the -sc option part<br />

is shown)<br />

-sc DTdata1+DTdata2+DTdata3+DTdata4=0x1<strong>00</strong>0,<br />

CDprog1+CDprog2+CDprog3+CDprog4=0X3<strong>00</strong>0<br />

-sc DT*=0x1<strong>00</strong>0,CD*=0x3<strong>00</strong>0<br />

-sc */data=0x1<strong>00</strong>0,*/code=0x3<strong>00</strong>0<br />

PART II LINKER 201

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

Saved successfully!

Ooh no, something went wrong!