Date: Thu, 14 Aug 2014 17:22:50 -0600 From: Warner Losh <imp@bsdimp.com> To: "freebsd-arch@freebsd.org" <arch@FreeBSD.org> Subject: MD Elf header filtering Message-ID: <D55BAAF5-C5D2-4505-B4D5-4DA6C914E10E@netflix.com>
next in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] Greetings I’ve implemented a per-arch filtering mechanism for elf headers. why would you need this? Because we don’t have a kernel that can run both EABI and OABI binaries on arm. OABI binaries can lead to crashes when run on an EABI kernel. To prevent that, I’ve created a new function elfXX_check_header_md() which interested architectures can implement to filter out binaries they know won’t work and use it to filter out EABI binaries on an OABI kernel and vice versa on arm. I’ve also created a weak default version for those architectures that don’t that accepts everything... https://reviews.freebsd.org/D609 Comments? Warner [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Comment: GPGTools - https://gpgtools.org iQIcBAEBCgAGBQJT7UTLAAoJEGwc0Sh9sBEA4JIP/3BMgYuH5UXgmg5oBV1pPoZZ Kz3adbLtTNTlTfWzLJRtbT06SEEhoSgws4bwOWHl818YdA7yCS3i10mnLUQuC9lD nNm7ZHIHw5FB4aYNLD30kh0w275TnzoI2AD7hClQfsjlEQ+X2KJ+73SrSN64Bd/u Hyj5nhOIXQS6M+bnWhLW2BpCST+gFpMgRDo3wtnwb1ZqiCpQ969jK9UmSBLzpO1p KTFpkB1NZJK48Nk9IPDO5GY8OMyLnKpayDhZTHmpWeQGyEUByVpUT9vzVgSTFpj7 cA1G1KKG66gYckPOoM/Y7LwXgwUoEGoFfzvss3qV5G1H6zLip46WfhxgloJT8XOV Th/yd0ZQHuWDMGN4Emu0I+7ybTZGJGuuDosoIfhor58a9UmbKA0H5lsDDFkr3F9d jBkuvla85AGjA97bdH5UknjVOMKeFRxWvyOiaQUvnRNhSzTz0plI3e427ltKub+I s7/euSgYPW6UhLpSZ3xqmSZTmOtJhFXARwk6tHDHT1C0f3e1J1Tl5xt9zte5YYmz tI/4VMtMy8hDnYb/zrqrKLLco7mFlebBHVP8LeAKiMpx+y92D30BEaC2m1xYb5cf EWOFYKN8qCPQXicXCZyh535Jxy8zfMqn0RxKbzGfV7v3AzkY474qaZPcANNTX+82 MI/Dr+rAvblqtkfXTkfX =TWVK -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?D55BAAF5-C5D2-4505-B4D5-4DA6C914E10E>
