summaryrefslogtreecommitdiffstats
path: root/sys/mips/mips/elf_machdep.c
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2009-10-03 11:57:21 +0000
committerbz <bz@FreeBSD.org>2009-10-03 11:57:21 +0000
commit8e183cd85201b119d9db722fe1d28c9b670245d1 (patch)
tree6cb8a42ac48b11c5b150bbb77da88f7a5b2e39df /sys/mips/mips/elf_machdep.c
parent7fe717ff129ce34fa3b5380090fae7cdbf0984e3 (diff)
downloadFreeBSD-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/mips/mips/elf_machdep.c')
-rw-r--r--sys/mips/mips/elf_machdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/mips/mips/elf_machdep.c b/sys/mips/mips/elf_machdep.c
index 974f296..d276b8f 100644
--- a/sys/mips/mips/elf_machdep.c
+++ b/sys/mips/mips/elf_machdep.c
@@ -90,7 +90,7 @@ static Elf32_Brandinfo freebsd_brand_info = {
.flags = BI_BRAND_NOTE
};
-SYSINIT(elf32, SI_SUB_EXEC, SI_ORDER_ANY,
+SYSINIT(elf32, SI_SUB_EXEC, SI_ORDER_FIRST,
(sysinit_cfunc_t) elf32_insert_brand_entry,
&freebsd_brand_info);
OpenPOWER on IntegriCloud