×
Namespaces

Variants
Actions
Revision as of 13:51, 15 December 2011 by hamishwillee (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

中文 Elftran

From Nokia Developer Wiki
Jump to: navigation, search
Article Metadata

兼容于
平台:
Symbian

文章
kcomex 在 30 Mar 2007 创建
最后由 hamishwillee 在 15 Dec 2011 编辑

elftran - ELF文件预处理器,这个工具是用来将ELF格式的可执行文件转换为E32Image格式可执行文件的,在Symbian OS中只有E32Image格式的可执行文件才能被运行。目前该工具只用于ARMV5 (ABIv1)目标文件的处理。


语法

elftran [options] inputfile outputfile
elftran [options] e32imagefile
 
//中文释义
elftran [选项] 输入文件 输出文件
elftran [选项] e32image文件

// 选项

[-v] [[-no]call[entrypoint]] [-priority <priority>]
[-stack <size>] [-heap <min> <max>] [-uid<n> <uid>]
[-allowdlldata] [-datalinkaddress <base>] [-fixed] [-moving]
[-align-const-section] [-const-section-address-mask <mask>]
[-[no]compress] [-capability "<list>"] [-version M.m] [-vid <id>]
[-fpu <softvfp|vfpv2>]
[-dump [h][s][c][d][e][i]]
flags for dump: h Header
s Security info
c Code section
d Data section
e Export info
i Import table

范例输出

R:\Epoc32\release\GCCE\UREL>elftran -dump h HelloWorldBasic.exe
 
ELFTRAN - ELF file preprocessor V02.01 (Build 549)
Copyright (c) 1996-2005 Symbian Software Ltd.
 
E32ImageFile 'HelloWorldBasic.exe'
V2.00(505) Time Stamp: 00e109e2,38142200
EPOC Exe for ARMV5 CPU
Flags: 1200002a
Priority Foreground
Entry points are not called
Image header is format 2
Image is compressed using the DEFLATE algorithm
Uncompressed size 0000fa48
Image FPU support : Soft VFP
Secure ID: a000017f
Vendor ID: 00000000
Capabilities: 00000000 00000000
Exception Descriptor Offset: 00004c19
Exception Index Table Base: 00016bcc
Exception Index Table Limit: 000170dc
RO Segment Base: 00008001
RO Segment Limit: 0000d074
Export Description: Size=000, Type=01
 
Export description consistent
Module Version: 10.0
Imports are ELF-style
ARM EABI
Built against EKA2
Uids: 1000007a 100039ce a000017f (1e7cca07)
Header CRC: 53f755b7
File Size: 0000fa48
Code Size: 0000f0dc
Data Size: 00000000
Compression: 101f7afc
Min Heap Size: 00001000
Max Heap Size: 00100000
Stack Size: 00005000
Code link addr: 00008000
Data link addr: 00400000
Code reloc offset: 0000f850
Data reloc offset: 00000000
Dll ref table count: 14
Offset Size Relocs #Relocs
Code 00009c 00f0dc 00f850 0000ca +004bbc (entry pnt)
Data 000000 000000
Bss 000000
Import 00f178


使用范例

从一个指定的可执行程序中保存平台安全属性信息

R:\Epoc32\release\GCCE\UREL>elftran -dump s HelloWorldBasic.exe

对一个指定的可执行程序文件,修改他的平台安全属性

R:\Epoc32\release\GCCE\UREL>elftran -capability "NetworkServices ReadDeviceData WriteDeviceData" HelloWorldBasic.exe
This page was last modified on 15 December 2011, at 13:51.
214 page views in the last 30 days.