x86_64 iasm cannot directly load global variable with PIC code

Basile B. b2.temp at gmx.com
Sun Feb 4 05:03:31 UTC 2018


```
__gshared a = "sdfg";

void main()
{
     asm
     {
         mov RCX, [a];
     }
}
```

> Error: cannot directly load global variable 'a' with PIC code

How can i do that indirectly then ?



More information about the Digitalmars-d-learn mailing list