makelcf.exe

Location

$REVOLUTION_SDK_ROOT/X86/bin/

Overview

Generates a linker command file and a symbol list for the static module from all dynamic (relocatable) module files.

Description

This program predicts the export information of static module from import information (information to reference external module) and export information (information to allow referencing from external module) of all dynamic modules. It then creates the linker command file and symbol list of the static module.
Specifically, this program collects the export symbol information and outputs it after removing duplicate symbols and symbols that are present in the import information.

The symbol list is used to generate the static module's module file (.sel).(See makerso.exe.)

Options

-o <Linker Command File>

Specifies the name of the linker command file to output.
When this is omitted, the output file name is static.lcf.

-s <Symbol List>

Specifies the file name of the symbol list to output.
When this is omitted, the output file name is symbol.lst.

-t <Linker Command File Template>

Specifies the template for the linker command file.
Specify <revolution/eppc.$(PLATFORM).lcf>.
This cannot be omitted.

@<Response File>

You can also configure and specify the arguments through a response file which lists the arguments.

Return Values

0 Conversion successful.
1 An error that does not fall under the following errors.
2 RSO file read failed.
3 No RSO file specified.
4 Linker command filename not specified after -o.
5 Symbol list filename not specified after -s.
6 Template filename not specified after -t.
7 Template file read failed.
8 File output error.
9 Unspecifiable option.
10 Too many arguments specified (2048 maximum).
11 Response file read failed.
12 Abnormally long filename specified.
13 Allocation of conversion memory failed.

Example

This example demonstrates creation of the static module's linker command file (static.lcf) and symbol list (symbol.lst) from all dynamic module files (a.rso, b.rso) and the linker command template (eppc.RVL0.lcf).


% makelcf.exe -o static.lcf -s symbol.lst -t eppc.RVL.lcf a.rso b.rso

If using a response file (response.txt), do so as follows:


% makelcf.exe @response.txt

The response.txt example for the above.

 
-o static.lcf -s symbol.lst -t eppc.RVL.lcf a.rso b.rso

See Also

Tool List

Revision History

2006/11/01 Added support for return values.
2006/10/27 Added support for response files.
2006/10/25 Added support for multiple files.
2006/06/14 Initial version.


CONFIDENTIAL