This compatibility alias for kern.elf{32,64}.fallback_brand has been
marked for removal since FreeBSD 6.0.
Signed-off-by: Christos Longros <chris.longros@gmail.com>
Differential D56085
kern_mib: remove kern.fallback_elf_brand compat sysctl Authored by chris.longros_gmail.com on Mar 25 2026, 2:06 PM. Tags None Referenced Files
Details This compatibility alias for kern.elf{32,64}.fallback_brand has been Signed-off-by: Christos Longros <chris.longros@gmail.com>
Diff Detail
Event TimelineComment Actions Does the extern declaration for __elfN(fallback_brand) in sys/sys/imgact_elf.h is needed after the patch? Could the __elfN(fallback_brand) var made static in kern_elf.c? Comment Actions Good point. Updated the made __elfN(fallback_brand) from extern to static in imgact_elf.c. Comment Actions Note that these are currently accessed in libexec/rc/rc.d/linux: # Handle unbranded ELF executables by defaulting to ELFOSABI_LINUX.
if [ `sysctl -ni kern.elf64.fallback_brand` -eq "-1" ]; then
sysctl kern.elf64.fallback_brand=3 > /dev/null
fi
if [ `sysctl -ni kern.elf32.fallback_brand` -eq "-1" ]; then
sysctl kern.elf32.fallback_brand=3 > /dev/null
fi |