首页
社区
课程
招聘
[求助]如何使用cl或者link让VC以release编译出带重定位的EXE?
发表于: 2007-3-22 18:25 5787

[求助]如何使用cl或者link让VC以release编译出带重定位的EXE?

2007-3-22 18:25
5787
使用cl.exe /? 和link.exe /?查看过帮助,看不出相关参数

在BAIDU搜索“重定位”只能找到PE相关或者DLL相关的信息。

[培训]内核驱动高级班,冲击BAT一流互联网大厂工作,每周日13:00-18:00直播授课

收藏
免费 0
支持
分享
最新回复 (3)
雪    币: 289
活跃值: (10)
能力值: ( LV2,RANK:10 )
在线值:
发帖
回帖
粉丝
thk
2
http://msdn.microsoft.com/library/chs/default.asp?url=/library/CHS/vccore/html/_core_.2f.fixed.asp
2007-3-22 19:29
0
雪    币: 217
活跃值: (99)
能力值: ( LV4,RANK:50 )
在线值:
发帖
回帖
粉丝
3
/FIXED   (Fixed Base Address)

Syntax
/FIXED[:NO]

This option tells the operating system to load the program only at its preferred base address. If the preferred base address is unavailable, the operating system will not load the file. For more information, see /BASE (Base Address).

When /FIXED is specified, now the default setting, LINK does not generate a relocation section in the program. At run time, if the operating system is unable to load the program at that address, it issues an error message and does not load the program.

Specify /FIXED:NO to generate a relocation section in the program.

Some Win32 operating systems, especially those that coexist with MS-DOS®, must frequently relocate a program. A program created with the /FIXED option will not run on Win32s operating systems.

Do not use /FIXED when building device drivers for Windows NT.
2007-3-23 11:05
0
雪    币: 846
活跃值: (221)
能力值: (RANK:570 )
在线值:
发帖
回帖
粉丝
4
感谢2楼和3楼的帮助
2007-3-23 18:53
0
游客
登录 | 注册 方可回帖
返回
//