diff options
author | bz <bz@FreeBSD.org> | 2009-10-03 11:57:21 +0000 |
---|---|---|
committer | bz <bz@FreeBSD.org> | 2009-10-03 11:57:21 +0000 |
commit | 8e183cd85201b119d9db722fe1d28c9b670245d1 (patch) | |
tree | 6cb8a42ac48b11c5b150bbb77da88f7a5b2e39df /sys/ia64 | |
parent | 7fe717ff129ce34fa3b5380090fae7cdbf0984e3 (diff) | |
download | FreeBSD-src-8e183cd85201b119d9db722fe1d28c9b670245d1.zip FreeBSD-src-8e183cd85201b119d9db722fe1d28c9b670245d1.tar.gz |
Make sure that the primary native brandinfo always gets added
first and the native ia32 compat as middle (before other things).
o(ld)brandinfo as well as third party like linux, kfreebsd, etc.
stays on SI_ORDER_ANY coming last.
The reason for this is only to make sure that even in case we would
overflow the MAX_BRANDS sized array, the native FreeBSD brandinfo
would still be there and the system would be operational.
Reviewed by: kib
MFC after: 1 month
Diffstat (limited to 'sys/ia64')
-rw-r--r-- | sys/ia64/ia64/elf_machdep.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/ia64/ia64/elf_machdep.c b/sys/ia64/ia64/elf_machdep.c index 31765cc..8360165 100644 --- a/sys/ia64/ia64/elf_machdep.c +++ b/sys/ia64/ia64/elf_machdep.c @@ -95,7 +95,7 @@ static Elf64_Brandinfo freebsd_brand_info = { .brand_note = &elf64_freebsd_brandnote, .flags = BI_CAN_EXEC_DYN | BI_BRAND_NOTE }; -SYSINIT(elf64, SI_SUB_EXEC, SI_ORDER_ANY, +SYSINIT(elf64, SI_SUB_EXEC, SI_ORDER_FIRST, (sysinit_cfunc_t)elf64_insert_brand_entry, &freebsd_brand_info); static Elf64_Brandinfo freebsd_brand_oinfo = { |