title: including static libraries with -all_load flag
body: <p>In what cases exactly do you need -all_load flag?</p>
  
  <p>Lets say I  have something like</p>
  
  <pre><code>g++ source.cpp -o test libA.a libB.a libC.a
  </code></pre>
  
  <p>From  what  i recall if there is some reference to a symbol used in  source.cpp  that is present
  in  say <code>libB.a</code> file then that <code>libB.a</code> will  be linked (just that symbol or whole code in that library? ) and <code>libA.a</code> and <code>libC.a</code> will be ignored (their code will not be present in final executable).</p>
  
  <ul>
  <li><p>What happens to other libraries  when i use -all_load flag as follows</p>
  
  <p><code>g++ source.cpp -o test -Wl,-all_load libA.a libB.a libC.a</code></p></li>
  <li><p>how does 'strip' command effect the output with all_load flag?</p></li>
  </ul>