title: How to change the name of executable entry point from main to something else?
body: <p>I'm trying to compile third party source code using gcc 4.8 on Ubuntu Linux (12.04 x64) with a lot of utilities and test applications where executable entry point is not called <code>main</code>. Don't ask me why - I don't know the answer.</p>
  
  <p>Linker of course complains:</p>
  
  <pre><code>/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/crt1.o: In function `_start':
  (.text+0x20): undefined reference to `main'
  collect2: error: ld returned 1 exit status
  </code></pre>
  
  <p>Is it possible to force linker to use another method as the entry point? I tried to use these linker options with gcc but neither of them worked:
  <code>-Wl,-eWhatever</code> or <code>-Wl,--entry=Whatever</code> or <code>-Wl,-e,Whatever</code>. All ended with the same error.</p>