|
||
The elf2e32
tool's primary function is to create
executables (DLLs and EXEs) in the format required by Symbian OS, known as the
E32Image format. The tool takes as input, the executables produced by a
compiler in the standard Executable and Linking Format (ELF), and Symbian
OS-specific options specified as command-line arguments to the tool. The tool
is located in at epoc32\tools\elf2e32.exe
.
elf2e32 [--capability=<capabilities>] [--compressionmethod
[none | inflate | bytepair]] [--debuggable] [--dlldata]
[--definput=<file-path>] [--defoutput=<file-path>]
[--dso=<file-path>] [--dump=<dump-options>]
[--e32input=<file-path>] [--elfinput=<file-path>] [--fixedaddress]
[--heap=<committed-size>[,<reserved-size>]] [--help]
[--libpath=<search-paths>] [--linkas=<name>] [--namedlookup]
[--noexportlibrary] [--output=<file-path>] [--sid=<secure-ID>]
[--stack=<size>] [--sysdef=<ordinal-number>,<symbol>]
[--targettype=<target-type>] [--uid1=<UID>] [--uid2=<UID>]
[--uid3=<UID>] [--uncompressed]
Option |
Description |
||||||
|
Platform security capabilities to be assigned to the executable.
Capabilities can be specified by name using the set of
identifiers used in mmp files, i.e.: Multiple capabilities can be specified using "+" as a separator. For example:
The special capability name
The default is no capabilities though the word See also the Platform security concepts section in Symbian OS Guide/Platform security/Platform security engineering guide or Symbian OS Guide/Platform security/Symbian OS v9 Security Architecture(SDKs) |
||||||
|
Specifies that the application can be debugged using the run-mode
debug subsystem. Only executables (EXEs and EXEXPs) can be specified as
|
||||||
|
Input DEF file. This is used to specify a DEF file when constructing a DLL and/or import library. |
||||||
|
Output DEF file. Specifies a DEF file to be constructed by the tool. |
||||||
|
Allow writable static data in the DLL. The default is that a DLL may not have writable static data. For more information, see Static data. |
||||||
|
Output DSO (or library) file. Specifies the LIB file to be constructed by the tool. |
||||||
|
Used to specify the information generated when the
|
||||||
|
Dumps a description of the specified E32Image file to standard
output. The output describes the executable's properties such as its header,
its imports and exports, and the contents of its code and data sections. Output
options are specified using the |
||||||
|
Input ELF file. Specifies a compiler-generated executable in ELF format to be converted into E32Image format by the tool. |
||||||
|
Indicates that the process must have a fixed address. See Fixed processes for more information. The default is no fixed address. |
||||||
|
The committed size and reserved size of the heap for the process, specified in bytes. The first value given is the committed size, followed by the reserved size which is optional. The default committed size is 0x1000 and the default reserved size is 0x100000. See Memory Management concepts for more information. |
||||||
|
Displays help text for the tool. |
||||||
|
A semi-colon separated list of search paths that the tool should use to locate import libraries. |
||||||
|
The internal name used in the image file for the executable. This
can include information that specifies the executable version (in braces) and
the UID3 (in square brackets). For example,
|
||||||
|
Redirects console log messages to the specified file |
||||||
|
The compression method to be used to compress the files. The tool
uses the The following compression methods can be used:
|
||||||
|
Enables symbol lookup by name using the dlsym Open Group API. This option has an impact on the binary size as Symbian OS binaries do not include symbol information by default.
Note: If the tool is invoked by the Symbian OS build
toolchain, symbol lookup is enabled for the |
||||||
|
Suppress implicit exports.
As part of the library exports, the RVCT tools generate items not
marked as
For background information, see
The default is to include these items generated by RVCT. |
||||||
|
Output E32 image file name. |
||||||
|
Secure ID (SID) of the executable. An SID identifies an executable uniquely on a phone. This allows service providers such as servers to make security checks on the basis of the executable making the request. See also the Platform security concepts section in Symbian OS Guide/Platform security/Platform security engineering guide. |
||||||
|
Specifies the stack size for a process in bytes. The default is 0. |
||||||
|
This option forces the specified symbol to be exported at the specified ordinal position. This is required for some target types (polymorphic DLLs). |
||||||
|
Target type. The vaild types are as specified by the mmp targettype keyword.
If
An |
||||||
|
UID 1 value for output executable. |
||||||
|
UID 2 value for output executable. The default is 0. |
||||||
|
UID 3 value for output executable. The default is 0. |
||||||
|
Specifies that the target executable must not be compressed. By default, the target executable is compressed. |
||||||
|
Specifies that the input DEF file (specified with
|
||||||
|
Vendor ID (VID) of the executable. A VID allows service providers such as servers to make security checks on the basis of the supplier of the executable making the request. See also the Platform security concepts section in Symbian OS Guide/Platform security/Platform security engineering guide. |
The following table specifies whether an option is required, optional or not applicable (N/A) for the main use cases of the tool (namely creating DLLs, EXEs, EXEs with exports (EXEXP target), and import libraries (IMPLIB target)).
Option |
DLL (static/polymorphic) |
EXE |
EXEXP |
IMPORT LIB |
|
optional |
optional |
optional |
N/A |
|
N/A |
optional |
optional |
N/A |
|
optional |
N/A |
N/A |
N/A |
|
optional |
N/A |
optional |
required |
|
required |
N/A |
required |
N/A |
|
required |
N/A |
required |
required |
|
required |
required |
required |
N/A |
|
N/A |
optional |
optional |
N/A |
|
N/A |
optional |
optional |
N/A |
|
optional |
optional |
optional |
N/A |
|
required |
required |
required |
required |
|
optional |
N/A |
optional |
N/A |
|
required |
required |
required |
N/A |
|
required |
required |
required |
N/A |
|
N/A |
optional |
optional |
no |
|
Required for polymorphic DLL target types only |
N/A |
N/A |
N/A |
|
DLL, or polymorphic DLL target type |
EXE |
EXEXP |
IMPLIB |
|
required |
required |
required |
N/A |
|
optional |
optional |
optional |
N/A |
|
optional |
optional |
optional |
N/A |
|
optional |
optional |
optional |
N/A |
|
optional |
N/A |
optional |
N/A |
|
required |
required |
required |
N/A |