From: deraadt Date: Mon, 22 Dec 2014 02:55:48 +0000 (+0000) Subject: amd64 now also uses the ssyms mechanism. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=b9d56c587c55a84ce5b46365435da62895d02720;p=openbsd amd64 now also uses the ssyms mechanism. ok guenther --- diff --git a/sys/dev/ksyms.c b/sys/dev/ksyms.c index f93558e918b..5f877a17252 100644 --- a/sys/dev/ksyms.c +++ b/sys/dev/ksyms.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ksyms.c,v 1.25 2014/07/08 17:19:25 deraadt Exp $ */ +/* $OpenBSD: ksyms.c,v 1.26 2014/12/22 02:55:48 deraadt Exp $ */ /* * Copyright (c) 1998 Todd C. Miller * Copyright (c) 2001 Artur Grabowski @@ -39,7 +39,7 @@ #endif extern char *esym; /* end of symbol table */ -#if defined(__sparc64__) || defined(__mips__) +#if defined(__sparc64__) || defined(__mips__) || defined(__amd64__) extern char *ssym; /* end of kernel */ #else extern long end; /* end of kernel */ @@ -61,7 +61,7 @@ void ksymsattach(int num) { -#if defined(__sparc64__) || defined(__mips__) +#if defined(__sparc64__) || defined(__mips__) || defined(__amd64__) if (esym <= ssym) { printf("/dev/ksyms: Symbol table not valid.\n"); return; @@ -75,7 +75,7 @@ ksymsattach(int num) #ifdef _NLIST_DO_ELF do { -#if defined(__sparc64__) || defined(__mips__) +#if defined(__sparc64__) || defined(__mips__) || defined(__amd64__) caddr_t symtab = ssym; #else caddr_t symtab = (caddr_t)&end;