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:
simonb 2006-03-06 22:47:13 +00:00
parent e7ef71f0c6
commit fa4d68e618
1 changed files with 2 additions and 2 deletions

View File

@ -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 * Copyright (c) 1989, 1991, 1993
@ -232,7 +232,7 @@ struct vfsops {
struct vfs_hooks { struct vfs_hooks {
void (*vh_unmount)(struct mount *); 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 *); void vfs_hooks_unmount(struct mount *);