Here is a cleaned-up, simplified version of the solution.
This is for F14 (maybe later) x86_64 only, and the 64bit adobe flash plugin.
https://bugzilla.redhat.com/show_bug.cgi?id=638477
Create an empty directory -then cut-n-paste this into a shell
Code:
cat <<EOF > linusmemcpy.c
#include <sys/types.h>
void *memcpy(void *dst, const void *src, size_t size)
{
void *orig = dst;
asm volatile("rep ; movsq"
:"=D" (dst), "=S" (src)
:"0" (dst), "1" (src), "c" (size >> 3)
:"memory");
asm volatile("rep ; movsb"
:"=D" (dst), "=S" (src)
:"0" (dst), "1" (src), "c" (size & 7)
:"memory");
return orig;
}
EOF
Then get root privileges , for example using "su -" and run this from the directory:
Code:
gcc -O2 -c linusmemcpy.c
ld -G linusmemcpy.o -o linusmemcpy.so
cp linusmemcpy.so /usr/lib64
chcon --reference=/lib64/libc.so.6 /usr/lib64/linusmemcpy.so
sed -e "s:^exec :LD_PRELOAD=/usr/lib64/linusmemcpy.so exec :" -i /usr/bin/firefox
The last line inserts the necessary option into the firefox startup script.
For other browsers you'll need ...
LD_PRELOAD=/usr/lib64/linusmemcpy.so /opt/google/chrome/google-chrome &
LD_PRELOAD=/usr/lib64/linusmemcpy.so /usr/bin/opera &
somewhere