title: converting a 64bit .so to 32bit
body: <p>I have a third party .so that was generated on a 64bit machine.  I'd like to use this same .so on a 32bit machine.  Anyone know how to do the conversion?  I tried:</p>
  
  <pre><code>objcopy "--input-target=elf64-x86-64" "--output-target=elf32-i386" 64bit.so 32bit.so
  </code></pre>
  
  <p>but I'm still getting "File format not recognized" from gcc.  For the record I'm doing this:</p>
  
  <pre><code>gcc -g code.c 32bit.so
  </code></pre>
  
  <p>which is kinda hack-y but that's ok for now.</p>