[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/23854] -no-pie -export-dynamic corrupts binary

From: stsp at users dot sourceforge.net
Subject: [Bug ld/23854] -no-pie -export-dynamic corrupts binary
Date: Sun, 04 Nov 2018 23:05:57 +0000


--- Comment #4 from Stas Sergeev <stsp at users dot sourceforge.net> ---
(In reply to H.J. Lu from comment #3)
> do_dpmi_int has
Ah, I see now what you mean.

>     8f69:       8b 83 00 00 00 00       mov    0x0(%ebx),%eax   8f6b:
> R_386_GOT32X      DPMI_return_from_realmode
>     8f6f:       66 05 00 48             add    $0x4800,%ax
>     8f73:       66 2b 83 00 00 00 00    sub    0x0(%ebx),%ax    8f76:
> R_386_GOT32X      DPMI_dummy_start
>     8f7a:       66 89 46 30             mov    %ax,0x30(%esi)
>     8f7e:       0f b7 45 2c             movzwl 0x2c(%ebp),%eax
> Please show me the corresponding C code.
Of course:
The function is called "do_int31", but it
gets inlined into do_dpmi_int. This is
exactly the line you look for.
The ugly macros are here:

I will also try to attach the dpmi.s with -verbose-asm
for you tomorrow.

You are receiving this mail because:
You are on the CC list for the bug.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]