DIP45: fixing the dllimport/dllexport issue

Rainer Schuetze r.sagitario at gmx.de
Thu Aug 29 23:22:57 PDT 2013



On 29.08.2013 21:09, Martin Nowak wrote:
> On 08/29/2013 08:30 PM, Rainer Schuetze wrote:
>> I meant the import part. How are accesses or data references to data
>> inside another shared library implemented?
>
> References from the data segment use absolute relocations.
> References from PIC code use the GOT.

So an indirection through the GOT is added to every access to a 
non-static global if you compile with -fPIC?


More information about the Digitalmars-d mailing list