title: How to create an ELF executable on Mac OS X?
body: <p>I'm following this tutorial: <a href="https://littleosbook.github.io/#linking-the-kernel" rel="noreferrer">https://littleosbook.github.io/#linking-the-kernel</a></p>
  
  <p>and I'm on a Mac. I'm at the point where I have an object file created from <code>nasm</code>, and I want to turn it into an ELF executable using <code>ld</code>. The <code>ld</code> on a mac doesn't look like it supports the ELF format, but I don't want to run a virtual machine with Ubuntu just to do this link step.</p>
  
  <p>Is it possible to install GNU <code>ld</code> on mac and run it alongside Mac's <code>ld</code> ?</p>