Module Name: src
Committed By: pgoyette
Date: Thu Jan 24 05:06:43 UTC 2019
Modified Files:
src/sys/compat/linux/common [pgoyette-compat]: linux_exec_elf32.c
Log Message:
Move the definition around to avoid strange compiler error (something
about trying to set a section attribute on a local variable).
To generate a diff of this commit:
cvs rdiff -u -r1.94.12.6 -r1.94.12.7 \
src/sys/compat/linux/common/linux_exec_elf32.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/compat/linux/common/linux_exec_elf32.c
diff -u src/sys/compat/linux/common/linux_exec_elf32.c:1.94.12.6 src/sys/compat/linux/common/linux_exec_elf32.c:1.94.12.7
--- src/sys/compat/linux/common/linux_exec_elf32.c:1.94.12.6 Thu Jan 24 04:52:58 2019
+++ src/sys/compat/linux/common/linux_exec_elf32.c Thu Jan 24 05:06:43 2019
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_exec_elf32.c,v 1.94.12.6 2019/01/24 04:52:58 pgoyette Exp $ */
+/* $NetBSD: linux_exec_elf32.c,v 1.94.12.7 2019/01/24 05:06:43 pgoyette Exp $ */
/*-
* Copyright (c) 1995, 1998, 2000, 2001 The NetBSD Foundation, Inc.
@@ -35,7 +35,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_exec_elf32.c,v 1.94.12.6 2019/01/24 04:52:58 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_exec_elf32.c,v 1.94.12.7 2019/01/24 05:06:43 pgoyette Exp $");
#ifndef ELFSIZE
/* XXX should die */
@@ -74,6 +74,10 @@ __KERNEL_RCSID(0, "$NetBSD: linux_exec_e
#include <compat/linux/linux_syscallargs.h>
#include <compat/linux/linux_syscall.h>
+#if (ELFSIZE == 32)
+ MODULE_HOOK(netbsd32_machine32_hook, const char *, (void));
+#endif
+
#define LINUX_GO_RT0_SIGNATURE
#ifdef DEBUG_LINUX
@@ -335,7 +339,6 @@ ELFNAME2(linux,go_rt0_signature)(struct
goto out;
#if (ELFSIZE == 32)
- MODULE_HOOK(netbsd32_machine32_hook, const char *, (void));
extern struct netbsd32_machine32_hook_t netbsd32_machine32_hook;
MODULE_CALL_HOOK(netbsd32_machine32_hook, (), machine, m);
#else