diff options
author | Mike Frysinger <vapier@gentoo.org> | 2012-05-17 04:39:29 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2012-05-17 04:39:29 +0000 |
commit | da4e54cf5ae04e799bf3bac8a34228bdb5b62f05 (patch) | |
tree | e308cd0b3a7dfd2768b417d9a405cdb0b90fd360 /sys-process/psmisc/files/psmisc-22.16-fuser-pic.patch | |
parent | Make it build for mingw targets #393573 by jingtaozf. (diff) | |
download | gentoo-2-da4e54cf5ae04e799bf3bac8a34228bdb5b62f05.tar.gz gentoo-2-da4e54cf5ae04e799bf3bac8a34228bdb5b62f05.tar.bz2 gentoo-2-da4e54cf5ae04e799bf3bac8a34228bdb5b62f05.zip |
Fix TEXTRELs when building fuser as a PIE #394443 by Attila Tóth.
(Portage version: 2.2.0_alpha102/cvs/Linux x86_64)
Diffstat (limited to 'sys-process/psmisc/files/psmisc-22.16-fuser-pic.patch')
-rw-r--r-- | sys-process/psmisc/files/psmisc-22.16-fuser-pic.patch | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/sys-process/psmisc/files/psmisc-22.16-fuser-pic.patch b/sys-process/psmisc/files/psmisc-22.16-fuser-pic.patch new file mode 100644 index 000000000000..40a3c0c0d35f --- /dev/null +++ b/sys-process/psmisc/files/psmisc-22.16-fuser-pic.patch @@ -0,0 +1,17 @@ +http://bugs.gentoo.org/401851 +http://sourceforge.net/tracker/?func=detail&aid=3504801&group_id=15273&atid=115273 + +the x86 asm code is not PIC friendly, so disable it and fall back to the +gcc builtin for doing prefetching + +--- src/lists.h ++++ src/lists.h +@@ -68,7 +68,7 @@ + asm volatile ("lfetch [%0]" :: "r" (x)) + #elif defined(__powerpc64__) + asm volatile ("dcbt 0,%0" :: "r" (x)) +-#elif !defined(__CYGWIN__) && defined(__i386__) ++#elif !defined(__CYGWIN__) && !defined(__PIC__) && defined(__i386__) + asm volatile ("661:\n\t" + ".byte 0x8d,0x74,0x26,0x00\n" + "\n662:\n" |