Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 198604 Details for
Bug 268336
www-plugins/adobe-flash-10.0.22.87 crashes www-client/mozilla-firefox with "Illegal instruction"
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
lahf emulation workaround
flashplugin-lahf-fix.c (text/x-c), 1.01 KB, created by
Maks Verver
on 2009-07-20 12:46:40 UTC
(
hide
)
Description:
lahf emulation workaround
Filename:
MIME Type:
Creator:
Maks Verver
Created:
2009-07-20 12:46:40 UTC
Size:
1.01 KB
patch
obsolete
>/* Simple work-around for running the 64-bit Adobe Flash plug-in version 10 > on Athlon64 processors without support for the lahf instruction. > >Compile with: >cc -fPIC -shared -nostdlib -lc -oflashplugin-lahf-fix.so flashplugin-lahf-fix.c >Then place the .so file in the plug-in directory (e.g. $HOME/.mozilla/plugins) >or use LD_PRELOAD to force Firefox to load the library. > > - Maks Verver <maksverver@geocities.com> July 2009 */ > >#define _GNU_SOURCE >#include <stdlib.h> >#include <signal.h> >#include <ucontext.h> > >static void sig_handler(int signal, siginfo_t *info, void *context) { > if (signal != SIGILL) return; > if (*(char*)info->si_addr != (char)0x9f) abort(); > greg_t *regs = ((ucontext_t*)context)->uc_mcontext.gregs; > ((char*)®s[REG_RAX])[1] = ((char*)®s[REG_EFL])[0]; > regs[REG_RIP]++; >} > >static struct sigaction old_sa, new_sa = { > .sa_flags = SA_SIGINFO, > .sa_sigaction = &sig_handler }; > >int _init() { sigaction(SIGILL, &new_sa, &old_sa); return 0; } >int _fini() { sigaction(SIGILL, &old_sa, &new_sa); return 0; }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 268336
:
190164
|
196733
|
196734
|
196735
|
198602
| 198604