summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2016-12-15 11:19:50 +0100
committerJeroen Roovers <jer@gentoo.org>2016-12-15 11:31:47 +0100
commitafdb156aebf70781a2838053a9d8e4ab8625fbe2 (patch)
treed22316d07e7803eba61390f8f19112fe851bde6c /www-plugins/adobe-flash/files
parentwww-plugins/adobe-flash: Stable for AMD64 x86 too. (diff)
downloadgentoo-afdb156aebf70781a2838053a9d8e4ab8625fbe2.tar.gz
gentoo-afdb156aebf70781a2838053a9d8e4ab8625fbe2.tar.bz2
gentoo-afdb156aebf70781a2838053a9d8e4ab8625fbe2.zip
www-plugins/adobe-flash: Old.
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'www-plugins/adobe-flash/files')
-rw-r--r--www-plugins/adobe-flash/files/flashplugin-lahf-fix.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/www-plugins/adobe-flash/files/flashplugin-lahf-fix.c b/www-plugins/adobe-flash/files/flashplugin-lahf-fix.c
deleted file mode 100644
index 9338b733731..00000000000
--- a/www-plugins/adobe-flash/files/flashplugin-lahf-fix.c
+++ /dev/null
@@ -1,29 +0,0 @@
-/* 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*)&regs[REG_RAX])[1] = ((char*)&regs[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; }