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

bugzilla-daemon at icculus.org bugzilla-daemon at icculus.org
Thu Jun 9 16:49:58 EDT 2016


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

            Bug ID: 6429
           Summary: vm_x86.c inline assembly error on hosts using -fPIC
           Product: ioquake3
           Version: GIT MASTER
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Misc
          Assignee: zachary at ioquake.org
          Reporter: mark at noffle.net
        QA Contact: quake3-bugzilla at icculus.org

On hardened distros, gcc will be configured to automatically compile code as
position independent code as part of their hardening toolset.

code/qcommon/vm_x86:1792

contains the entry:
        __asm__ volatile(
                "calll *%3\n"
                : "+S" (programStack), "+D" (opStack), "+b" (opStackOfs)
                : "g" (entryPoint)
                : "cc", "memory", "%eax", "%ecx", "%edx"
        );

This doesn't work on hosts compiling with -fPIC with 32bit builds since ebx is
used by pic.

-fno-pic would probably be the easiest option here, imo.

-- 
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/20160609/a00f5807/attachment.html>


More information about the quake3-bugzilla mailing list