[quake3-bugzilla] [Bug 6429] vm_x86.c inline assembly error on hosts using -fPIC

bugzilla-daemon at icculus.org bugzilla-daemon at icculus.org
Tue Jun 14 21:17:07 EDT 2016


https://bugzilla.icculus.org/show_bug.cgi?id=6429

Thilo Schulz <arny at ats.s.bawue.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |arny at ats.s.bawue.de

--- Comment #2 from Thilo Schulz <arny at ats.s.bawue.de> ---
Hey Mark.
Indeed, I didn't think about PIC when I was updating the vm_x86.c JIT.
In fact, I still don't know very much about it.

Could you try compiling it PIC with gcc5?

https://software.intel.com/en-us/blogs/2014/12/26/new-optimizations-for-x86-in-upcoming-gcc-50-32bit-pic-mode

Otherwise, one could try to push / pop the EBX register in the inlined asm
around the calll.
Furthermore, Syscalls would also need to restore EBX to the Global Offset Table
address before jumping back into engine code. The address of the GOT should be
known to the JIT Compiler and could be emitted by the EmitCallDoSyscall() to do
just that.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://icculus.org/pipermail/quake3-bugzilla/attachments/20160615/4db9728a/attachment.html>


More information about the quake3-bugzilla mailing list