title: Force GNU linker to generate 32 bit ELF executables
body: <p>Hi I am currently generating x86 assembly for a compiler that I am writing and am having some trouble linking the file on my 64-bit VM (the assembly code is 32 bit). </p>
  
  <p>I was able to assemble the object file fine with this command:</p>
  
  <pre><code>as --32 mult.S -o mult.o
  </code></pre>
  
  <p>but I can't seem to find any options for <code>ld</code> that make it generate a 32-bit ELF file:</p>
  
  <pre><code>ld &lt;some-option?&gt; mult.o -o mult
  </code></pre>
  
  <p>Any help would be great. </p>