title: Converting assembly instructions to binary using objdump or gcc -c
body: <p>I'm working on the buffer bomb lab and I'm stuck on one thing.  I've written my exploit code to solve level 2 (firecracker) but I'm not sure how I can convert this to its raw form using <code>gcc -c</code>.
  I've never written a compile-able assembly file but I have written instructions themselves and traced already written ones.. So I know how they work but I'm not sure how to syntactically write the code file itself.</p>
  
  <p>Here are the current contents of the file I'm trying to convert to its raw form:</p>
  
  <pre><code>movl $0x1a4bb386, 0x804d200
  push $0x0804915f 
  ret
  </code></pre>
  
  <p>What do I need to add to this so that it will compile using <code>gcc -c</code> or <code>objdump -d</code>?
  I need to figure out how many bytes these instructions take up and how to insert them into the buffer so that I can write my buffer overflow exploit.</p>
  
  <p>Thanks.</p>