[Issue 9729] New: interface thunk doesn't set EBX to GOT

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Mar 15 09:56:10 PDT 2013


http://d.puremagic.com/issues/show_bug.cgi?id=9729

           Summary: interface thunk doesn't set EBX to GOT
           Product: D
           Version: D2
          Platform: x86
        OS/Version: Linux
            Status: NEW
          Severity: major
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: code at dawg.eu


--- Comment #0 from Martin Nowak <code at dawg.eu> 2013-03-15 09:56:09 PDT ---
cat > bug.d << CODE
interface ILock
{
    void lock();
}

class Lock : ILock
{
    void lock()
    {
    }
}
CODE

--------------------
dmd -c -m32 -fPIC bug
--------------------
_TMP3   LABEL NEAR
        sub     eax, 8                                  ; 0048 _ 83. E8, 08
        jmp     _D3bug4Lock4lockMFZv                    ; 004B _ E9,
FFFFFFFC(PLT r)

It seems to me that the thunk needs to load the GOT because the class must not
be in the same shared library as the caller of the interface.

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list