[Issue 9816] Export is mostly broken

d-bugmail at puremagic.com d-bugmail at puremagic.com
Thu Aug 29 11:38:06 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=9816



--- Comment #15 from Martin Nowak <code at dawg.eu> 2013-08-29 11:38:04 PDT ---
(In reply to comment #11)
> When a variable is accessed which is linked in through a static library the
> compiler generates a direct access. If it is linked in through a dynamic
> library however the compiler needs to generate another level of indirection
> through the import table. Which is done by referencing _imp_ symbol instead of
> the original symbol directly. Thats wyh the compiler has to know if the symbol
> is imported from a dynamic or static library.

Maybe my understanding of the Windows mechanism is wrong, but I don't think
that the exported symbol has to be different. All the runtime binding happens
in the import library and which is similar to the PLT for ELF. Code that refers
to an imported symbol will then statically link against the import library.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list