[Issue 22170] interface thunk doesn't set EBX to GOT
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Tue Aug 3 06:35:44 UTC 2021
https://issues.dlang.org/show_bug.cgi?id=22170
--- Comment #2 from Iain Buclaw <ibuclaw at gdcproject.org> ---
GDC doesn't run into this by calling the aliased symbol directly in the thunk,
e.g:
GDC
---
subl $0x8,0x4(%esp)
jmp 0xf7f34ffb <_D5mydll1C3fooMFCQp1IZCQvQr>
---
DMD
---
sub $0x8,%eax
jmp 0xf7f06970 <_D5mydll1C3fooMFCQp1IZCQvQr at plt>
---
GDC only generates thunks for symbols that are being emitted in this
compilation, AFAIK it's not possible to have a thunk for an external symbol in
DMD as well?
--
More information about the Digitalmars-d-bugs
mailing list