title: How is function main() inside a shared object (.so) taken care of by the linker?
body: <p>Suppose I have </p>
  
  <ul>
  <li><p>an object file (<code>source.o</code>) without function <code>main</code>.</p></li>
  <li><p>a shared object (<code>libmain.so</code>) with function <code>main</code>. </p></li>
  </ul>
  
  <p>How will the linker take care of the entry point when both are linked dynamically to create binary <code>source.bin</code>?</p>