Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/pgoyette-compat]: src/sys/compat/linux/common Move the definition around...
details: https://anonhg.NetBSD.org/src/rev/563d9fbf860b
branches: pgoyette-compat
changeset: 447797:563d9fbf860b
user: pgoyette <pgoyette%NetBSD.org@localhost>
date: Thu Jan 24 05:06:43 2019 +0000
description:
Move the definition around to avoid strange compiler error (something
about trying to set a section attribute on a local variable).
diffstat:
sys/compat/linux/common/linux_exec_elf32.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diffs (37 lines):
diff -r ae373d3146e5 -r 563d9fbf860b sys/compat/linux/common/linux_exec_elf32.c
--- a/sys/compat/linux/common/linux_exec_elf32.c Thu Jan 24 04:52:58 2019 +0000
+++ b/sys/compat/linux/common/linux_exec_elf32.c Thu Jan 24 05:06:43 2019 +0000
@@ -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 @@
#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 @@
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
Home |
Main Index |
Thread Index |
Old Index