The hooks pointed to by VFS_HOOKS_ATTACH are in the (read/write) data
segment and not a readonly segment, so use __link_set_add_data for them. Fixes problems with corrupt vfs attach hook lists on our remaining a.out platform.
This commit is contained in:
parent
e7ef71f0c6
commit
fa4d68e618
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: mount.h,v 1.137 2006/02/12 06:18:25 dogcow Exp $ */
|
||||
/* $NetBSD: mount.h,v 1.138 2006/03/06 22:47:13 simonb Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1989, 1991, 1993
|
||||
|
@ -232,7 +232,7 @@ struct vfsops {
|
|||
struct vfs_hooks {
|
||||
void (*vh_unmount)(struct mount *);
|
||||
};
|
||||
#define VFS_HOOKS_ATTACH(hooks) __link_set_add_rodata(vfs_hooks, hooks)
|
||||
#define VFS_HOOKS_ATTACH(hooks) __link_set_add_data(vfs_hooks, hooks)
|
||||
|
||||
void vfs_hooks_unmount(struct mount *);
|
||||
|
||||
|
|
Loading…
Reference in New Issue