1   1  /  1  页   跳转

How Are DLLs Linked to Executables

How Are DLLs Linked to Executables

The executable code is located in the .text section of PE files (or in the CODE section, as the Borland linker calls it). When the application calls a function that is in a DLL, the actual CALL instruction does not call the DLL directly. Instead, it goes first to a jump (JMP DWORD PTR [XXXXXXXX]) instruction somewhere in the executable's .text section (or in the CODE section in the case of Borland linkers).
The address that the jump instruction looks up is stored in the .idata section (or sometimes in .text) and is called an entry within the IAT (Import Address Table).

用户系统信息:Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0; QQDownload 1.7; SLCC1; .NET CLR 2.0.50727; .NET CLR 3.0.04506)

对个人来讲,统计,仪器,高速的计算机可以让人们得到大量充裕的时间。
这个社会中,更不可缺的是具备现代化的管理经验。
分享到:
gototop
 

回复:How Are DLLs Linked to Executables

jmp分短跳转和近跳转。call命令会先行进入下一行命令。

jmp和call有本质的不同。他们MS和引入表关系不密切

对个人来讲,统计,仪器,高速的计算机可以让人们得到大量充裕的时间。
这个社会中,更不可缺的是具备现代化的管理经验。
gototop
 

回复:How Are DLLs Linked to Executables

小聪学长,十分感谢。只是我不明白,使用a.asm,b.asm.编译时发生了错误,我没有办法产生可执行文件


引用:

C:\MASM615>masm a
Microsoft (R) MASM Compatibility Driver
Copyright (C) Microsoft Corp 1993.  All rights reserved.

Invoking: ML.EXE /I. /Zm /c /Ta a.asm

Microsoft (R) Macro Assembler Version 6.15.8803
Copyright (C) Microsoft Corp 1981-2000.  All rights reserved.

Assembling: a.asm
\masm615\include\windows.inc(12276) : error A2161: non-benign structure redefini
tion: too few labels : CREATE_THREAD_DEBUG_INFO
\masm615\include\windows.inc(14271) : error A2005: symbol redefinition : Type1
\masm615\include\windows.inc(14316) : error A2005: symbol redefinition : Type1
\masm615\include\windows.inc(14320) : error A2005: symbol redefinition : Type1
\masm615\include\windows.inc(14323) : fatal error A1010: unmatched block nesting


A2161 non-benign structure redefinition : too few labels
Not enough members were defined in a structure redefinition.

A2005 symbol redefinition : identifier
The given nonredefinable symbol was defined in two places.
最后编辑文物2 最后编辑于 2008-10-09 21:13:15

对个人来讲,统计,仪器,高速的计算机可以让人们得到大量充裕的时间。
这个社会中,更不可缺的是具备现代化的管理经验。
gototop
 
1   1  /  1  页   跳转
页面顶部
Powered by Discuz!NT