[Issue 22170] interface thunk doesn't set EBX to GOT
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Aug 3 08:38:18 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=22170
--- Comment #4 from Iain Buclaw <ibuclaw at gdcproject.org> ---
(In reply to Iain Buclaw from comment #2)
> DMD
> ---
> sub $0x8,%eax
> jmp 0xf7f06970 <_D5mydll1C3fooMFCQp1IZCQvQr at plt>
> ---
Removing the PLT (same as PIE
https://github.com/dlang/dmd/blob/master/src/dmd/backend/elfobj.d#L3125), DMD
only ever seems to generate a jmp to an offset of the target function.
---
sub $0x8,%eax
jmp 0xf7f06970 <_D5mydll1C3fooMFCQp1IZCQvQr+4>
---
Which also looks wrong in comparison to GDC and triggers a segfault.
--
More information about the Digitalmars-d-bugs
mailing list