[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 |
https://sourceware.org/bugzilla/show_bug.cgi?id=23854
--- 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:
https://github.com/stsp/dosemu2/blob/devel/src/dosext/dpmi/dpmi.c#L2053
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:
https://github.com/stsp/dosemu2/blob/devel/src/include/cpu.h#L138
https://github.com/stsp/dosemu2/blob/devel/src/include/bios.h#L161
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.
- [Bug ld/23854] New: -no-pie -export-dynamic corrupts binary, stsp at users dot sourceforge.net, 2018/11/03
- [Bug ld/23854] -no-pie -export-dynamic corrupts binary, hjl.tools at gmail dot com, 2018/11/04
- [Bug ld/23854] -no-pie -export-dynamic corrupts binary, stsp at users dot sourceforge.net, 2018/11/04
- [Bug ld/23854] -no-pie -export-dynamic corrupts binary, hjl.tools at gmail dot com, 2018/11/04
- [Bug ld/23854] -no-pie -export-dynamic corrupts binary,
stsp at users dot sourceforge.net <=
- [Bug ld/23854] -no-pie -export-dynamic corrupts binary, stsp at users dot sourceforge.net, 2018/11/04
- [Bug ld/23854] -no-pie -export-dynamic corrupts binary, hjl.tools at gmail dot com, 2018/11/04
- [Bug ld/23854] -no-pie -export-dynamic corrupts binary, stsp at users dot sourceforge.net, 2018/11/05
- [Bug ld/23854] -no-pie -export-dynamic corrupts binary, stsp at users dot sourceforge.net, 2018/11/05
- [Bug ld/23854] -no-pie -export-dynamic corrupts binary, stsp at users dot sourceforge.net, 2018/11/05
- [Bug ld/23854] 16-bit GOT access is incorrectly optimized, hjl.tools at gmail dot com, 2018/11/05
- [Bug ld/23854] 16-bit GOT access is incorrectly optimized, hjl.tools at gmail dot com, 2018/11/05
- [Bug ld/23854] 16-bit GOT access is incorrectly optimized, stsp at users dot sourceforge.net, 2018/11/05
- [Bug ld/23854] 16-bit GOT access is incorrectly optimized, hjl.tools at gmail dot com, 2018/11/05
- [Bug gas/23854] 16-bit GOT access is incorrectly optimized, hjl.tools at gmail dot com, 2018/11/05