Elektrine lite

← Feed

koorogi

koorogi@hachyderm.io

<p>Software developer. Occasional gamer.</p>

Posts

  • View post

    I&#39;ve started trying netbsd recently. I was curious how well the linux compatibility layer works, so I compiled os-test on a musl-based linux machine, and ran the tests on netbsd. What I immediately found was that there&#39;s apparently no sure fire way to distinguish the OS a given ELF binary targets. There is an &quot;OS/ABI&quot; field in the header, but it&#39;s typically set to &quot;System V&quot; even on Linux. So netbsd relies on some heuristics. One of which is to look at the pr...