When selecting brand based on old Elf branding, prefer the brand which
authorkib <kib@FreeBSD.org>
Tue, 7 Mar 2017 13:38:25 +0000 (13:38 +0000)
committerkib <kib@FreeBSD.org>
Tue, 7 Mar 2017 13:38:25 +0000 (13:38 +0000)
commit02da26ef9045e6f010c3a6bc0632ee20640f203c
tree659e2ddf1c3e8646df77c163c2d1b73ac835145a
parent2594ff8ef531cd7a3f804051872bc2727df3a57e
When selecting brand based on old Elf branding, prefer the brand which
interpreter exactly matches the one requested by the activated image.

This change applies r295277, which did the same for note branding, to
the old brand selection, with the same reasoning of fixing compat32
interpreter substitution.

PR: 211837
Reported by: kenji@kens.fm
Sponsored by: The FreeBSD Foundation
MFC after: 1 week
sys/kern/imgact_elf.c