MD Elf header filtering

Warner Losh imp at bsdimp.com
Thu Aug 14 23:22:54 UTC 2014


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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/freebsd-arch/attachments/20140814/e0f10db0/attachment.sig>


More information about the freebsd-arch mailing list