Comment #15 on issue 18337 by sc.contact: Linux problems building .so's on  
64-bit (fPIC).
http://code.google.com/p/chromium/issues/detail?id=18337

The library.o pic problem can be fixed by the below patch as suggested to  
me by the
PaX team.  I think g register constraint confuses something in gcc.

--- sandbox/linux/seccomp/linux_syscall_support.h
+++ sandbox/linux/seccomp/linux_syscall_support.h
@@ -1722,7 +1722,7 @@
            __asm__ __volatile__("movq %5,%%r10;  
syscall" :                     \
              "=a" (__res) : "0"  
(__NR_##name),                                 \
              "D" ((long)(arg1)), "S" ((long)(arg2)), "d"  
((long)(arg3)),       \
-            "g"  
((long)(arg4)) : "r10", "r11", "rcx", "memory");              \
+            "r"  
((long)(arg4)) : "r10", "r11", "rcx", "memory");              \
            LSS_RETURN(type,  
__res);                                            \
        }
      #undef _syscall5

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
Automated mail from issue updates at http://crbug.com/
Subscription options: http://groups.google.com/group/chromium-bugs
-~----------~----~----~----~------~----~------~--~---

Reply via email to