title: Mini OS: Linking the compiled & assembled .o files
body: <p>I'm trying to set up a working environment for assembling a bootloader and compiling and linking a simple kernel according to this page: <a href="http://wiki.osdev.org/Bare_bones" rel="nofollow">enter link description here</a></p>
  
  <p>So far everything went well, however I can't seem to work around this linker error:</p>
  
  <pre><code>C:\Users\----\Desktop\&gt;ld -T linker.ld -o kernel.bin --oformat binary loader.o kernel.o
  ld: cannot perform PE operations on non PE output file 'kernel.bin'.
  </code></pre>
  
  <p>The ld manual pages are in my opinion far too cryptic, and don't give any answers to this particular error message.</p>
  
  <p>(I'm using Windows 7 64 bit)</p>