Missed header_supported call from r291020: make really, really sure the brand

likes the executable.
This commit is contained in:
Nathan Whitehorn 2015-12-01 17:00:31 +00:00
parent 0a2a3753ef
commit f19d421ac6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=291597

View File

@ -273,6 +273,9 @@ __elfN(get_brandinfo)(struct image_params *imgp, const char *interp,
if (hdr->e_machine == bi->machine && (bi->flags &
(BI_BRAND_NOTE|BI_BRAND_NOTE_MANDATORY)) != 0) {
ret = __elfN(check_note)(imgp, bi->brand_note, osrel);
/* Give brand a chance to veto check_note's guess */
if (ret && bi->header_supported)
ret = bi->header_supported(imgp);
if (ret)
return (bi);
}