From 2f453c26e7b08815526b8c9e97856276b36baf1d Mon Sep 17 00:00:00 2001 From: dchagin Date: Sun, 24 May 2015 16:07:11 +0000 Subject: Add preliminary support for x86-64 Linux binaries. Differential Revision: https://reviews.freebsd.org/D1076 --- sys/amd64/linux/linux_genassym.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 sys/amd64/linux/linux_genassym.c (limited to 'sys/amd64/linux/linux_genassym.c') diff --git a/sys/amd64/linux/linux_genassym.c b/sys/amd64/linux/linux_genassym.c new file mode 100644 index 0000000..0edb6a0 --- /dev/null +++ b/sys/amd64/linux/linux_genassym.c @@ -0,0 +1,15 @@ +#include +__FBSDID("$FreeBSD$"); + +#include +#include +#include + +#include +#include + +ASSYM(LINUX_RT_SIGF_HANDLER, offsetof(struct l_rt_sigframe, sf_handler)); +ASSYM(LINUX_RT_SIGF_UC, offsetof(struct l_rt_sigframe, sf_sc)); +ASSYM(LINUX_RT_SIGF_SC, offsetof(struct l_ucontext, uc_mcontext)); +ASSYM(LINUX_VERSION_CODE, LINUX_VERSION_CODE); +ASSYM(LINUX_SC_RSP, offsetof(struct l_sigcontext, sc_rsp)); -- cgit v1.1