February 04, 2018 x86_64 iasm cannot directly load global variable with PIC code | ||||
---|---|---|---|---|
| ||||
```
__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 ?
|
February 04, 2018 Re: x86_64 iasm cannot directly load global variable with PIC code | ||||
---|---|---|---|---|
| ||||
Posted in reply to Basile B. | On Sunday, 4 February 2018 at 05:03:31 UTC, Basile B. wrote: > ``` > __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 ? Also consider that there's no RIP: https://issues.dlang.org/show_bug.cgi?id=17617 |
Copyright © 1999-2021 by the D Language Foundation