Re: How the linker imports DLL functions

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



On Tue, 12 Jul 2005 16:24:02 -0700, Benjamin wrote:

> Apparently, the stubs really aren't in the .lib, for two reasons:
>
> 1) I checked with the official PE specification -- there cannot be any raw
> data associated to those "pseudo object files" (as the specification calls
> them).
>
> 2) the stub is "jmp dword ptr [...]", in assembly "FF 25" -- but the
> sequence of bytes "FF 25" are not found even once in the entire USER32.LIB !
> (you can check that with a hex editor).
>
> So the stubs simply aren't there. Mystery.

My second guess would be the linker generates them on the fly.

--
Doug Harrison
Microsoft MVP - Visual C++
.



Relevant Pages

  • Re: Need help with loading .SO file
    ... Its the wrong lib. ... stubs lib and define -DUSE_TCL_STUBS during compile. ... file shells with extra static packages included. ...
    (comp.lang.tcl)
  • Re: IDL
    ... There isn't much difference in tlb generation as MIDL ... won't generate 2nd tlb in 64bit run; but you'll see two stubs being ... "Alexander Nickolov" wrote in message ... > Microsoft MVP, MCSD ...
    (microsoft.public.vc.atl)
  • Re: version conflict for package "Tcl": TCL_VERSION vs TCL_PATCH_LEVEL
    ... That's what the stubs mechanism is for -- maintains forward and backward ... lib and then load the resulting extension into an 8.4 interpreter fine ... extension linked against the 8.4 stub lib should load into an 8.5 interp ...
    (comp.lang.tcl)