summaryrefslogtreecommitdiffstats
path: root/sys/arm
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/arm
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/arm')
-rw-r--r--sys/arm/arm/elf_machdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/arm/arm/elf_machdep.c b/sys/arm/arm/elf_machdep.c
index 8b61053..d77e7d4 100644
--- a/sys/arm/arm/elf_machdep.c
+++ b/sys/arm/arm/elf_machdep.c
@@ -88,7 +88,7 @@ static Elf32_Brandinfo freebsd_brand_info = {
.flags = BI_CAN_EXEC_DYN | 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